܍~c6TGddZGddZGddZdS)ceZdZdZedZedZedZedZedZ edZ edZ d Z d S) NicBasez{ Define what are expected of each nic. The following properties should be provided in an implementation class. c td)zb Retrieves the mac address of the nic @return (str) : the MACADDR setting MACADDRNotImplementedErrorselfs O/usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/nic_base.pymacz NicBase.macs "),,,c td)a Retrieves whether the nic is the primary nic Indicates whether NIC will be used to define the default gateway. If none of the NICs is configured to be primary, default gateway won't be set. @return (bool): the PRIMARY setting PRIMARYrrs r primaryzNicBase.primarys"),,,r c td)zu Retrieves whether the nic should be up at the boot time @return (bool) : the ONBOOT setting ONBOOTrrs r onbootzNicBase.onboot"s "(+++r c td)z Retrieves the boot protocol of the nic @return (str): the BOOTPROTO setting, valid values: dhcp and static. BOOTPROTOrrs r bootProtozNicBase.bootProto*s "+...r c td)z Retrieves the IPv4_MODE @return (str): the IPv4_MODE setting, valid values: backwards_compatible, static, dhcp, disabled, as_is IPv4_MODErrs r ipv4_modezNicBase.ipv4_mode2s"+...r c td)z Retrieves the static IPv4 configuration of the nic @return (StaticIpv4Base list): the static ipv4 setting z Static IPv4rrs r staticIpv4zNicBase.staticIpv4; "-000r c td)z| Retrieves the IPv6 configuration of the nic @return (StaticIpv6Base list): the static ipv6 setting z Static Ipv6rrs r staticIpv6zNicBase.staticIpv6Crr c td)z Validate the object For example, the staticIpv4 property is required and should not be empty when ipv4Mode is STATIC zCheck constraints on propertiesrrs r validatezNicBase.validateKs ""CDDDr N) __name__ __module__ __qualname____doc__propertyr rrrrrrrr r rr s --X---X-,,X,//X///X/11X111X1EEEEEr rcTeZdZdZedZedZedZdS)StaticIpv4Basez Define what are expected of a static IPv4 setting The following properties should be provided in an implementation class. c td)zV Retrieves the Ipv4 address @return (str): the IPADDR setting z Ipv4 Addressrrs r ipzStaticIpv4Base.ipZ ".111r c td)z_ Retrieves the Ipv4 NETMASK setting @return (str): the NETMASK setting z Ipv4 NETMASKrrs r netmaskzStaticIpv4Base.netmaskbr*r c td)zl Retrieves the gateways on this Ipv4 subnet @return (str list): the GATEWAY setting z Ipv4 GATEWAYrrs r gatewayszStaticIpv4Base.gatewaysjr*r N)r r!r"r#r$r)r,r.r%r r r'r'Tso 22X222X222X222r r'cTeZdZdZedZedZedZdS)StaticIpv6BasezDefine what are expected of a static IPv6 setting The following properties should be provided in an implementation class. c td)zX Retrieves the Ipv6 address @return (str): the IPv6ADDR setting z Ipv6 Addressrrs r r)zStaticIpv6Base.ipxr*r c td)zc Retrieves the Ipv6 NETMASK setting @return (str): the IPv6NETMASK setting z Ipv6 NETMASKrrs r r,zStaticIpv6Base.netmaskr*r c td)zc Retrieves the Ipv6 GATEWAY setting @return (str): the IPv6GATEWAY setting z Ipv6 GATEWAYrrs r gatewayzStaticIpv6Base.gatewayr*r N)r r!r"r#r$r)r,r4r%r r r0r0sso22X222X222X222r r0N)rr'r0r%r r r5sHEHEHEHEHEHEHEHEV22222222>2222222222r