code: def virtual_interface_create(self, name, net_name):
          '''
          Add an interfaces to a slice
          '''
          nt_ks = self.compute_conn
          serverid = self._server_uuid_from_name(name)
          networkid = self.network_show(net_name).get('id', None)
          if networkid is None:
              return {net_name: False}
          nets = nt_ks.virtual_interfaces.create(networkid, serverid)
          return netf virtual_interface_create(self, name, net_name):
          '''
          Add an interfaces to a slice
          '''
          nt_ks = self.compute_conn
          serverid = self._server_uuid_from_name(name)
          networkid = self.network_show(net_name).get('id', None)
          if networkid is None:
              return {net_name: False}
          nets = nt_ks.virtual_interfaces.create(networkid, serverid)
          return nets
docs: Add an interfaces to a slice