def setUpClass(self): self.codec_provider = CodecServiceProvider() self.codec = CodecService() self.repo = Repository(get_local_repo_dir()) self.provider = gNMIServiceProvider( self.repo, "127.0.0.1", "admin", "admin", port=50051) self.schema = self.provider.get_session().get_root_schema() self.crud = CRUDService()
def setUpClass(self): self.codec_provider = CodecServiceProvider() self.codec = CodecService() self.repo = Repository(get_local_repo_dir()) self.provider = gNMIServiceProvider( self.repo, "127.0.0.1", 50051, "admin", "admin") self.schema = self.provider.get_session().get_root_schema() self.crud = CRUDService()
def setUpClass(self): self.codec = Codec() self.repo = Repository(get_local_repo_dir()) self.session = gNMISession( self.repo, "127.0.0.1", 50051, "admin", "admin") self.schema = self.session.get_root_schema() self.bgp_json = '' self.int_json = ''
def setUpClass(self): self.codec = Codec() self.repo = Repository(get_local_repo_dir()) self.session = gNMISession(self.repo, "127.0.0.1", 50051, "admin", "admin") self.schema = self.session.get_root_schema() self.bgp_json = '' self.int_json = ''