本文整理汇总了Golang中github.com/juju/juju/state.Subnet.VLANTag方法的典型用法代码示例。如果您正苦于以下问题:Golang Subnet.VLANTag方法的具体用法?Golang Subnet.VLANTag怎么用?Golang Subnet.VLANTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/juju/juju/state.Subnet
的用法示例。
在下文中一共展示了Subnet.VLANTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: assertSubnetMatchesInfo
func (s *SubnetSuite) assertSubnetMatchesInfo(c *gc.C, subnet *state.Subnet, info state.SubnetInfo) {
c.Assert(subnet.ProviderId(), gc.Equals, info.ProviderId)
c.Assert(subnet.CIDR(), gc.Equals, info.CIDR)
c.Assert(subnet.VLANTag(), gc.Equals, info.VLANTag)
c.Assert(subnet.AvailabilityZone(), gc.Equals, info.AvailabilityZone)
c.Assert(subnet.String(), gc.Equals, info.CIDR)
c.Assert(subnet.GoString(), gc.Equals, info.CIDR)
c.Assert(subnet.SpaceName(), gc.Equals, info.SpaceName)
}