def test_create_odl_sdn_account(self, proxy, sdn_account_name, sdn_account_type): '''Configure sdn account''' sdn_account = RwMcYang.SDNAccount(name=sdn_account_name, account_type=sdn_account_type) xpath = "/sdn/account[name='%s']" % sdn_account_name proxy.create_config(xpath, sdn_account)
def test_create_odl_sdn_account(self, proxy, sdn_account_name, sdn_account_type): '''Configure sdn account Asserts: SDN name and accout type. ''' sdn_account = RwMcYang.SDNAccount(name=sdn_account_name, account_type=sdn_account_type) xpath = "/sdn/account[name='%s']" % sdn_account_name proxy.create_config(xpath, sdn_account) print(sdn_account) sdn_account = proxy.get(xpath)