Uploaded image for project: 'vtn'
  1. vtn
  2. VTN-95

Flowfilter action "vlan-pcp" is not listed in the flow entries installed to the switch.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • unspecified
    • None
    • VTN Manager
    • None
    • Operating System: All
      Platform: All

    • 4914

    Description

      I observed that when i create flowfilter by setting action vlan-pcp, creation and ping success.

      But when i do dumpflow vlan-pcp entry is not set(it shows "vlan_tci=0x0000").

      Attached Karaf log. Below are the steps

      How to reproduce the issue:

      Configuration:
      Created VTN, VBR Interfaces
      if1 portmapping - "tenant-name":"vtn1", "bridge-name":"vbr1", "interface-name":"if1", "node":"openflow:2", "port-name":"s2-eth1"
      if2 portmapping - "tenant-name":"vtn1", "bridge-name":"vbr1", "interface-name":"if1", "node":"openflow:2", "port-name":"s2-eth1"

      Flowcondition:
      curl --user "admin":"admin" -H "Content-type: application/json" -X POST http://localhost:8181/restconf/operations/vtn-flow-condition:set-flow-condition -d '{"input":{"operation":"SET","present":"false","name":"cond_1","vtn-flow-match":[{"vtn-ether-match":{},"vtn-inet-match":

      {"source-network":"10.0.0.1/32","destination-network":"10.0.0.3/32"}

      ,"index":"1"}]}}'

      Flowfilter:
      curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8181/restconf/operations/vtn-flow-filter:set-flow-filter -d '{"input": { "tenant-name": "vtn1", "bridge-name": "vbr1", "interface-name": "if1", "vtn-flow-filter": [{"condition": "cond_1","index": "10", "vtn-pass-filter": {}, "vtn-flow-action": [{ "order": "1", "vtn-set-vlan-pcp-action": {"vlan-pcp": "7"}}]}]}}'

      Ping Status:
      mininet> h1 ping h3
      PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
      64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=24.1 ms
      64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=19.4 ms
      64 bytes from 10.0.0.3: icmp_seq=3 ttl=64 time=0.662 ms

      Dumpflow:

      mininet> dpctl dump-flows

          • s1 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0x7f56000000000004, duration=12.523s, table=0, n_packets=12, n_bytes=1120, idle_age=3, priority=10,in_port=2,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1
            cookie=0x7f56000000000006, duration=7.505s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:2
            cookie=0x7f56000000000005, duration=11.517s, table=0, n_packets=10, n_bytes=980, idle_age=1, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:2
          • s2 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0x7f56000000000004, duration=12.533s, table=0, n_packets=12, n_bytes=1120, idle_age=1, priority=10,in_port=3,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:1
            cookie=0x7f56000000000006, duration=7.513s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, idle_age=7, priority=11,arp,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:3
            cookie=0x7f56000000000005, duration=11.524s, table=0, n_packets=10, n_bytes=980, idle_timeout=300, idle_age=1, priority=13,ip,in_port=1,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:3
          • s3 ------------------------------------------------------------------------
            NXST_FLOW reply (xid=0x4):
            cookie=0x7f56000000000004, duration=12.538s, table=0, n_packets=12, n_bytes=1120, idle_timeout=300, idle_age=1, priority=10,in_port=1,vlan_tci=0x0000,dl_src=5a:1a:e5:19:5d:68,dl_dst=8e:f4:bd:ac:60:73 actions=output:3
            cookie=0x7f56000000000006, duration=7.524s, table=0, n_packets=0, n_bytes=0, idle_age=7, priority=11,arp,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68 actions=output:1
            cookie=0x7f56000000000005, duration=11.536s, table=0, n_packets=10, n_bytes=980, idle_age=1, priority=13,ip,in_port=3,vlan_tci=0x0000,dl_src=8e:f4:bd:ac:60:73,dl_dst=5a:1a:e5:19:5d:68,nw_src=10.0.0.1,nw_dst=10.0.0.3 actions=output:1
            mininet>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            siva-karthik@hcl.com Karthik Sivasamy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: