code: def nic_add(self, container, nic):
          
          args = {
              'container': container,
              'nic': nic
          }
          self._nic_add.check(args)
  
          return self._client.json('corex.nic-add', args)
docs: Hot plug a nic into a container
  
          :param container: container ID
          :param nic: {
                          'type': nic_type # one of default, bridge, zerotier, macvlan, passthrough, vlan, or vxlan (note, vlan and vxlan only supported by ovs)
                          'id': id # depends on the type
                              bridge: bridge name,
                              zerotier: network id,
                              macvlan: the parent link name,
                              passthrough: the link name,
                              vlan: the vlan tag,
                              vxlan: the vxlan id
                          'name': name of the nic inside the container (ignored in zerotier type)
                          'hwaddr': Mac address of nic.
                          'config': { # config is only honored for bridge, vlan, and vxlan types
                              'dhcp': bool,
                              'cidr': static_ip # ip/mask
                              'gateway': gateway
                              'dns': [dns]
                          }
                       }
          :return: