diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-05-02 18:19:04 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2016-05-09 10:04:17 +0200 |
commit | f32168ef95c3b68567ccd57e098d74ad9a536edd (patch) | |
tree | e4eaba9fb428685c14c9f011a521521a172e9ccb /resources/libraries/robot/honeycomb | |
parent | e91261e76664aa94b515e3e6923a5d4e2ac883a0 (diff) |
Interface VxLAN test
JIRA: CSIT-45
- add test: Honeycomb modifies interface configuration - VxLAN
- add keywords used in these tests to set and verify configuration
- add method and vat template for dumping an interface's configured VxLAN
- fixed requirements.txt
Change-Id: I6d6c360a4d478a0e40eecf7c0235969e7c06f7a9
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
Diffstat (limited to 'resources/libraries/robot/honeycomb')
-rw-r--r-- | resources/libraries/robot/honeycomb/interfaces.robot | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/resources/libraries/robot/honeycomb/interfaces.robot b/resources/libraries/robot/honeycomb/interfaces.robot index 0768fd3021..f98cca0901 100644 --- a/resources/libraries/robot/honeycomb/interfaces.robot +++ b/resources/libraries/robot/honeycomb/interfaces.robot @@ -318,3 +318,68 @@ | | ${vat_data}= | InterfaceCLI.VPP get interface data | ${node} | ${interface} | | Should be equal | ${vat_data['mtu']} | ${mtu} | | Should be equal | ${vat_data['sub_inner_vlan_id']} | ${vrf-id} + +| Honeycomb sets interface VxLAN configuration +| | [Documentation] | Uses Honeycomb API to change VxLAN configuration \ +| | ... | of the specified interface. +| | ... +| | ... | *Arguments:* +| | ... | - node - information about a DUT node. Type: dictionary +| | ... | - interface - name of an interface on the specified node. Type: string +| | ... | - vxlan_settings - Configuration data for VxLAN. Type: dictionary +| | ... +| | ... | *Example:* +| | ... | \| Honeycomb sets interface VxLAN configuration \ +| | ... | \|${node} \| ${interface} \| &{vxlan_settings} \| +| | ... +| | [Arguments] | ${node} | ${interface} | &{vxlan_settings} +| | :FOR | ${items} | IN | @{vxlan_settings.items()} +| | | interfaceAPI.Configure interface vxlan | ${node} | ${interface} | @{items} + +| VxLAN configuration from Honeycomb should be +| | [Documentation] | Retrieves interface VxLAN configuration through Honeycomb\ +| | ... | and compares with state supplied in argument. +| | ... +| | ... | *Arguments:* +| | ... | - node - information about a DUT node. Type: dictionary +| | ... | - interface - name of an interface on the specified node. Type: string +| | ... | - vxlan_settings - Configuration data for VxLAN. Type: dictionary +| | ... +| | ... | *Example:* +| | ... +| | ... | \| VxLAN configuration from Honeycomb should be \ +| | ... | \| ${node} \| ${interface} \| &{vxlan_settings} \| +| | ... +| | [Arguments] | ${node} | ${interface} | &{vxlan_settings} +| | ${api_data}= | interfaceAPI.Get interface cfg data | ${node} | ${interface} +| | :FOR | ${items} | IN | @{vxlan_settings.items()} +| | | Should be equal as strings +| | ... | ${api_data['v3po:vxlan']['@{items}[0]']} | ${items[1]} +| | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface} +| | :FOR | ${items} | IN | @{vxlan_settings.items()} +| | | Should be equal as strings +| | ... | ${api_data['v3po:vxlan']['@{items}[0]']} | ${items[1]} + +| VxLAN configuration from VAT should be +| | [Documentation] | Retrieves interface VxLAN configuration through VAT and\ +| | ... | compares with state supplied in argument. +| | ... +| | ... | *Arguments:* +| | ... | - node - information about a DUT node. Type: dictionary +| | ... | - interface - name of an interface on the specified node. Type: string +| | ... | - vxlan_settings - Configuration data for VxLAN. Type: dictionary +| | ... +| | ... | *Example:* +| | ... +| | ... | \| VxLAN configuration from Honeycomb should be \ +| | ... | \| ${node} \| ${interface} \| &{vxlan_settings} \| +| | ... +| | [Arguments] | ${node} | ${interface} | &{vxlan_settings} +| | ${vat_data}= | VxLAN Dump | ${node} | ${interface} +| | Should be equal as strings +| | ... | ${vat_data['dst_address']} | ${vxlan_settings['dst']} +| | Should be equal as strings +| | ... | ${vat_data['src_address']} | ${vxlan_settings['src']} +| | Should be equal as strings | ${vat_data['vni']} | ${vxlan_settings['vni']} +| | Should be equal as strings +| | ... | ${vat_data['encap-vrf-id']} | ${vxlan_settings['encap_vrf_id']} |