[Documentation] Creates VPN Instance through restconf
[Tags] Post
${body} OperatingSystem.Get File ${VPN_CONFIG_DIR}/vpn_instance.json
- ${resp} RequestsLibrary.Post session ${REST_CON}l3vpn:vpn-instances/ data=${body}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}l3vpn:vpn-instances/ data=${body}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 204
Verify VPN instance
[Documentation] Verifies the vpn instance is created
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
: FOR ${value} IN @{vpn_inst_values}
[Documentation] Creates ietf interface through the restconf
[Tags] Post
${body} OperatingSystem.Get File ${VPN_CONFIG_DIR}/vm_interface.json
- ${resp} RequestsLibrary.Post session ${REST_CON}ietf-interfaces:interfaces/ data=${body}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}ietf-interfaces:interfaces/ data=${body}
Should Be Equal As Strings ${resp.status_code} 204
Verify ietf vm interface
[Documentation] Verifies ietf interface created
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]}/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]}/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
: FOR ${value} IN @{vm_int_values}
[Documentation] Creates vpn interface for the corresponding ietf interface
[Tags] Post
${body} OperatingSystem.Get File ${VPN_CONFIG_DIR}/vm_vpninterface.json
- ${resp} RequestsLibrary.Post session ${REST_CON}l3vpn:vpn-interfaces/ data=${body}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}l3vpn:vpn-interfaces/ data=${body}
Should Be Equal As Strings ${resp.status_code} 204
Verify VPN interface
[Documentation] Verifies the vpn interface created
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
: FOR ${value} IN @{vm_vpnint_values}
Delete vm vpn interface
[Documentation] Deletes the vpn interface
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}l3vpn:vpn-interfaces/
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}l3vpn:vpn-interfaces/
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleteing vm vpn interface
[Documentation] Verifies vpn interface after delete
[Tags] Verify after delete
- ${resp} RequestsLibrary.Get session ${REST_CON}l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Delete VPN Instance
[Documentation] Deletes the VPN Instance
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting the vpn instance
[Documentation] Verifies after deleting the vpn instance
[Tags] Verfiy after delete
- ${resp} RequestsLibrary.Get session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}l3vpn:vpn-instances/vpn-instance/${vpn_inst_values[0]}/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Delete vm ietf interface
[Documentation] Deletes the ietf interface
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting vm ietf interface
[Documentation] Verifies ietf interface after delete
[Tags] Verify after delete
- ${resp} RequestsLibrary.Get session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}ietf-interfaces:interfaces/interface/${vm_int_values[0]} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Verify FIB entry after delete
Ensure The Fib Entry Is Present
[Arguments] ${prefix}
[Documentation] Will succeed if the fib entry is present for the vpn
- ${resp} RequestsLibrary.Get session /restconf/operational/odl-fib:fibEntries/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session /restconf/operational/odl-fib:fibEntries/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Contain ${resp.content} ${prefix}
Ensure the Fib Entry Is Removed
[Arguments] ${prefix}
[Documentation] Will succeed if the fib entry is removed for the vpn
- ${resp} RequestsLibrary.Get session /restconf/operational/odl-fib:fibEntries/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session /restconf/operational/odl-fib:fibEntries/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
Should Not Contain ${resp.content} ${prefix}
Create VPN Instances
[Documentation] Creates VPN Instances through restconf
[Tags] Post
- ${resp} RequestsLibrary.Post session ${REST_CON}/l3vpn:vpn-instances/ data=${vpn_instances}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}/l3vpn:vpn-instances/ data=${vpn_instances}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 204
Create ietf interfaces
[Documentation] Creates ietf interfaces through the restconf
[Tags] Post
- ${resp} RequestsLibrary.Post session ${REST_CON}/ietf-interfaces:interfaces/ data=${ietf_interfaces}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}/ietf-interfaces:interfaces/ data=${ietf_interfaces}
Should Be Equal As Strings ${resp.status_code} 204
Verify ietf interfaces
Create VPN interfaces
[Documentation] Creates vpn interface for the corresponding ietf interface
[Tags] Post
- ${resp} RequestsLibrary.Post session ${REST_CON}/l3vpn:vpn-interfaces/ data=${vpn_interfaces}
+ ${resp} RequestsLibrary.Post Request session ${REST_CON}/l3vpn:vpn-interfaces/ data=${vpn_interfaces}
Should Be Equal As Strings ${resp.status_code} 204
Verify VPN interfaces
Delete vpn interfaces
[Documentation] Deletes the vpn interfaces
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}/l3vpn:vpn-interfaces/
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/l3vpn:vpn-interfaces/
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting vpn interfaces
[Documentation] Verifies if vpn interfaces are deleted
[Tags] Verify after delete
- ${resp} RequestsLibrary.get session ${REST_CON}/l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.get Request session ${REST_CON}/l3vpn:vpn-interfaces/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Delete ietf interfaces
[Documentation] Deletes the ietf interfaces
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}/ietf-interfaces:interfaces/
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/ietf-interfaces:interfaces/
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting ietf interfaces
[Documentation] Verifies if ietf interfaces are deleted
[Tags] Verify after delete
- ${resp} RequestsLibrary.get session ${REST_CON}/ietf-interfaces:interfaces/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.get Request session ${REST_CON}/ietf-interfaces:interfaces/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Delete VPN Instances
[Documentation] Deletes the VPN Instances
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CON}/l3vpn:vpn-instances/
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/l3vpn:vpn-instances/
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting the vpn instances
[Documentation] Verifies after deleting the vpn instances
[Tags] Verfiy after delete
- ${resp} RequestsLibrary.get session ${REST_CON}/l3vpn:vpn-instances/ headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.get Request session ${REST_CON}/l3vpn:vpn-instances/ headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 404
Verify FIB entries after delete