from PLC.Filter import Filter
from PLC.Table import Row, Table
import PLC.Auth
from PLC.Filter import Filter
from PLC.Table import Row, Table
import PLC.Auth
from PLC.Sites import Site, Sites
from PLC.Persons import Person, Persons
from PLC.Keys import Key, Keys
from PLC.Sites import Site, Sites
from PLC.Persons import Person, Persons
from PLC.Keys import Key, Keys
- shell = Shell()
- UpdateNode = self.api.callable('UpdateNode')
- UpdateNode(shell.auth, node['node_id'], {'hostname': node['hostname']})
+ from PLC.Methods.UpdateNode import UpdateNode
+ UpdateNode.__call__(UpdateNode(self.api), auth, node['node_id'], {'hostname': node['hostname']})
- shell = Shell()
- UpdateNode = self.api.callable('UpdateNode')
- UpdateNode(shell.auth, node['node_id'], {'hostname': node['hostname']})
+ from PLC.Methods.UpdateNode import UpdateNode
+ UpdateNode.__call__(UpdateNode(self.api), auth, node['node_id'], {'hostname': node['hostname']})
def add_slice(self, slice, peer_slice_id, commit = True):
"""
def add_slice(self, slice, peer_slice_id, commit = True):
"""