Commit a4a164f7 authored by douomo's avatar douomo
Browse files

added check for PEB svc inventory and test for SVLAN provisioning

parent 0016c72e
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,7 @@ Test Net


Test Service
Test Service
    Test Service    ${vendor_1}    filters/ServiceFilter/bridge_filter.xml
    Test Service    ${vendor_1}    filters/ServiceFilter/bridge_filter.xml
    #Test Service PEB Mode    ${vendor_1}    filters/ServiceFilter/bridge_filter.xml    filters/ServiceFilter/interface_filter.xml


    
    
*** Keywords ***
*** Keywords ***
@@ -86,6 +87,18 @@ Test Service
    Log    ${passed}    console=yes
    Log    ${passed}    console=yes
    Should Be Equal    ${passed}    SUCCESS
    Should Be Equal    ${passed}    SUCCESS


Test Service PEB Mode
    [Arguments]    ${info}    @{args}
    ${svc_inventory}=    Inventory Request    ${info}    @{args[0]}
    ${passed}=    Check SVC Inventory    ${svc_inventory}
    Log    ${passed}    console=yes
    Should Be Equal    ${passed}    SUCCESS
    ${iface_inventory}=    Inventory Request    ${info}    @{args[1]}
    ${passed}=    Check SVC PEB Inventory    ${iface_inventory}
    Log    ${passed}    console=yes
    Should Be Equal    ${passed}    SUCCESS


Inventory Request
Inventory Request
    [Arguments]    ${par}    @{filter}
    [Arguments]    ${par}    @{filter}
    ${m}=    Connect With Key    ${par["host"]}    ${par["port"]}    ${par["username"]}    ${par["key_filename"]}
    ${m}=    Connect With Key    ${par["host"]}    ${par["port"]}    ${par["username"]}    ${par["key_filename"]}

features/vlan.feature

deleted100644 → 0
+0 −37
Original line number Original line Diff line number Diff line
Feature: Simple VLAN management
    As a Network Controller,
    I want to deploy and remove VLANs on network elements.

Scenario: Plain VLAN 100
    Given the network mentioned in network.csv
    When the controller deploys VLAN 100
    Then the traffic should pass on this VLAN
     And the VLAN 100 should be in the configuration


Scenario: Plain VLAN 100 Removal
    Given the network mentioned in network.csv
    When the controller removes VLAN 100
    Then the traffic should not pass on this VLAN
     And the VLAN 100 should not be in the configuration

Scenario Outline: Deploy VLAN independanly
    Given the network mentioned in network.csv
    # When the VLAN <vlan_id> is deployed
    When the controller deploys VLAN <vlan_id>
    Then the traffic should pass on this VLAN
     And the VLAN 100 should be in the configuration

    Examples:
      | vlan_id |
      |     100 |
      |     200 |
  
Scenario: Multiple VLANs
    Given the network mentioned in network.csv
    #  And the VLANs 300 to 400 by step of 2
    # When all these VLANs are deployed
    When the controller deploys VLANs 300 to 400 by step of 50
    Then the traffic should pass on all these VLANs

+5 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0"?>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
    </interface>
</interfaces>
Loading