@@ -1902,16 +1902,28 @@ def interface_create(
19021902 ** kwargs ,
19031903 ) -> LinodeInterface :
19041904 """
1905- Creates a new interface under this Linode.
1905+ Creates a new interface under this Linode.
19061906
1907- :param firewall: The firewall this interface should be assigned to.
1908- :param default_route: The desired default route configuration of the new interface.
1909- :param public: The public-specific configuration of the new interface.
1910- If set, the new instance will be a public interface.
1911- :param vlan: The VLAN-specific configuration of the new interface.
1912- If set, the new instance will be a VLAN interface.
1913- :param vpc: The VPC-specific configuration of the new interface.
1914- If set, the new instance will be a VPC interface.
1907+ API Documentation: https://techdocs.akamai.com/linode-api/reference/post-linode-interface
1908+
1909+ Example: Creating a simple public interface for this Linode::
1910+
1911+ interface = instance.interface_create(
1912+ default_route=LinodeInterfaceDefaultRouteOptions(
1913+ ipv4=True,
1914+ ipv6
1915+ ),
1916+ public=LinodeInterfacePublicOptions()
1917+ )
1918+
1919+ :param firewall: The firewall this interface should be assigned to.
1920+ :param default_route: The desired default route configuration of the new interface.
1921+ :param public: The public-specific configuration of the new interface.
1922+ If set, the new instance will be a public interface.
1923+ :param vlan: The VLAN-specific configuration of the new interface.
1924+ If set, the new instance will be a VLAN interface.
1925+ :param vpc: The VPC-specific configuration of the new interface.
1926+ If set, the new instance will be a VPC interface.
19151927
19161928 :returns: The newly created Linode Interface.
19171929 """
@@ -1998,6 +2010,7 @@ def upgrade_interfaces(
19982010 self ,
19992011 config : Optional [Union [Config , int ]] = None ,
20002012 dry_run : bool = False ,
2013+ ** kwargs ,
20012014 ) -> UpgradeInterfacesResult :
20022015 """
20032016 Automatically upgrades all legacy config interfaces of a
@@ -2013,6 +2026,8 @@ def upgrade_interfaces(
20132026 """
20142027 params = {"config_id" : config , "dry_run" : dry_run }
20152028
2029+ params .update (kwargs )
2030+
20162031 result = self ._client .post (
20172032 "{}/upgrade-interfaces" .format (Instance .api_endpoint ),
20182033 model = self ,
0 commit comments