Commit 6b60c116 authored by douomo's avatar douomo
Browse files

fixed typos in provisioning test

parent 0fe84ba3
Loading
Loading
Loading
Loading
(8.14 KiB)

File changed.

No diff preview for this file type.

−25 B (456 B)

File changed.

No diff preview for this file type.

+0 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,6 @@ def get_filtered_config(mgr, filter):
    root = tree.getroot()
    root = tree.getroot()
    xmlstr = ET.tostring(root, encoding='unicode', method='xml')
    xmlstr = ET.tostring(root, encoding='unicode', method='xml')
    print(xmlstr)
    print(xmlstr)
    #return mgr.get_config(source='running', filter=("subtree", xmlstr)).data_xml
    return mgr.get(filter=("subtree", xmlstr)).data_xml
    return mgr.get(filter=("subtree", xmlstr)).data_xml


def get_running_config(mgr):
def get_running_config(mgr):
+1 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,7 @@ Scenario: S-VLAN PEB deployment
    When the controller deploys VLAN 301
    When the controller deploys VLAN 301
     And the controller register the CVLAN 302 and 303 to the VLAN 301
     And the controller register the CVLAN 302 and 303 to the VLAN 301
    Then the traffic should pass on this VLAN
    Then the traffic should pass on this VLAN
     And the VLAN 201 should be in the configuration
     And the VLAN 301 should be in the configuration




Scenario: S-VLAN PEB Removal
Scenario: S-VLAN PEB Removal
+1 −1
Original line number Original line Diff line number Diff line
@@ -166,7 +166,7 @@ class NetconfLibrary:
                context = {
                context = {
                    "cvid1":cvid1,
                    "cvid1":cvid1,
                    "cvid2":cvid2,
                    "cvid2":cvid2,
                    "port1_name" : ne.port_1
                    "port1_name" : ne.edgeIface
                }
                }
                xml = env.get_template("features/steps/svlan_2_registration_deletion.xml.pyformat").render(context)
                xml = env.get_template("features/steps/svlan_2_registration_deletion.xml.pyformat").render(context)
                m.edit_config(target="candidate", config=xml)
                m.edit_config(target="candidate", config=xml)
Loading