Should Contain ${result} in_port=${port} actions=${output}
Add a macmap
- [Arguments] ${vtn_name} ${vBridge_name} ${macmap_data}
+ [Arguments] ${vtn_name} ${vBridge_name} ${src_add} ${dst_add}
[Documentation] Create a macmap for a vbridge
- ${resp}= RequestsLibrary.Post Request session restconf/operations/vtn-mac-map:set-mac-map data={"input": { "allowed-hosts": ["${macmap_data}"], "tenant-name":${vtn_name}, "bridge-name": ${vBridge_name}}} }
+ ${resp}= RequestsLibrary.Post Request session restconf/operations/vtn-mac-map:set-mac-map data={"input":{"operation":"SET","allowed-hosts":["${dst_add}@0","${src_add}@0"],"tenant-name":"${vtn_name}","bridge-name":"${vBridge_name}"}}
Should Be Equal As Strings ${resp.status_code} 200
Get DynamicMacAddress
Documentation Test suite for VTN Manager using OF13
Suite Setup Start SuiteVtnMaTest
Suite Teardown Stop SuiteVtnMaTest
-Force Tags exclude
Resource ../../../libraries/VtnMaKeywords.robot
*** Test Cases ***
Add a vtn Tenant1
[Documentation] Add a vtn Tenant1
- Add a vtn Tenant1 {}
+ Add a vtn Tenant1
Add a vBridge vBridge1
[Documentation] Add a vBridge vBridge1 in vtn Tenant1
- Add a vBridge Tenant1 vBridge1 {}
+ Add a vBridge Tenant1 vBridge1
Add a macmap for bridge1
[Documentation] Add a macmap for bridge1 in vtn Tenant1
${source}= Get DynamicMacAddress h1
${destination}= Get DynamicMacAddress h3
- ${destaddress}= Create Dictionary vlan=0 address=${destination}
- ${sourceaddress}= Create Dictionary vlan=0 address=${source}
- @{machost} Create List ${sourceaddress} ${destaddress}
- ${mac_map_data}= Create Dictionary machost=${machost}
- Add a vBridgeMacMapping Tenant1 vBridge1 ${mac_map_data}
+ Add a macmap Tenant1 vBridge1 ${source} ${destination}
Get macmapflow h3 h1
[Documentation] ping h3 to h1
- Wait Until Keyword Succeeds 10s 2s Mininet Ping Should Succeed h3 h1
+ Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h3 h1
Delete a vtn Tenant1
[Documentation] Delete a vtn Tenant1
Documentation Test suite for VTN Manager using OF13
Suite Setup Start SuiteVtnMaTest
Suite Teardown Stop SuiteVtnMaTest
-Force Tags exclude
Resource ../../../libraries/VtnMaKeywords.robot
*** Test Cases ***
Add a vtn Tenant1
[Documentation] Add a vtn Tenant1
- Add a vtn Tenant1 {}
+ Add a vtn Tenant1
Add a vBridge vBridge1
[Documentation] Add a vBridge vBridge1 in vtn Tenant1
- Add a vBridge Tenant1 vBridge1 {}
+ Add a vBridge Tenant1 vBridge1
Add a macmap for bridge1
[Documentation] Add a macmap for bridge1 in vtn Tenant1
${source}= Get DynamicMacAddress h1
${destination}= Get DynamicMacAddress h3
- ${destaddress}= Create Dictionary vlan=0 address=${destination}
- ${sourceaddress}= Create Dictionary vlan=0 address=${source}
- @{machost} Create List ${sourceaddress} ${destaddress}
- ${mac_map_data}= Create Dictionary machost=${machost}
- Add a vBridgeMacMapping Tenant1 vBridge1 ${mac_map_data}
+ Add a macmap Tenant1 vBridge1 ${source} ${destination}
Get macmapflow h3 h1
[Documentation] ping h3 to h1
- Wait Until Keyword Succeeds 10s 2s Mininet Ping Should Succeed h3 h1
+ Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h3 h1
Delete a vtn Tenant1
[Documentation] Delete a vtn Tenant1