Add CSIT for VTN Manager flowfilter functionality
[integration/test.git] / csit / libraries / VtnMaKeywords.robot
index 6b20745f7919d47deb444fcd43069957be17f1ec..c3eaf4bf21130e180e205b7290ced633fd4d264a 100644 (file)
@@ -326,6 +326,12 @@ Remove a vbrif flowfilter
     ${resp}=    RequestsLibrary.Post Request    session    restconf/operations/vtn-flow-filter:remove-flow-filter    data={"input": {"indices": ["${filter_index}"], "tenant-name": "${vtn_name}","bridge-name": "${vBridge_name}","interface-name": "${interface_name}"}}
     Should Be Equal As Strings    ${resp.status_code}    200
 
+Add a vlan portmap
+    [Arguments]    ${vtn_name}    ${vbr_name}    ${interface_name}    ${id}    ${node_id}    ${port_id}
+    [Documentation]    Create a portmap for a interface of a vbridge
+    ${resp}=    RequestsLibrary.Post Request    session    restconf/operations/vtn-port-map:set-port-map    data={"input": { "tenant-name":${vtn_name}, "bridge-name":${vbr_name}, "interface-name": ${interface_name}, "vlan-id": ${id}, "node":"${node_id}", "port-name":"${port_id}"}}
+        Should Be Equal As Strings    ${resp.status_code}    200
+
 Verify Flow Entries for Flowfilter
     [Arguments]    ${dumpflows}    @{flowfilter_actions}
     [Documentation]    Verify switch flow entry using flowfilter for a vtn