BGP Flowspec with Juniper

asked 2017-09-06 01:42:09 -0800

Arun T gravatar image

I am pushing BGP Flowspec rule from opendaylight Boron controller to Junos. I am getting "204 response". But dont see the updates in the router.

The logs doesnt report any error. Below is the API query, I am using. Any help or input for troubleshooting.

POST /restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-flowspec:flowspec-subsequent-address-family/bgp-flowspec:flowspec-routes HTTP/1.1 Host: xxx:8181 Authorization: Basic YWRtaW46YWRtaW4= Content-Type: application/xml Cache-Control: no-cache Postman-Token: 8bd42c7d-751f-dc1b-5837-3c59b81713a6

<flowspec-route xmlns="urn:opendaylight:params:xml:ns:yang:bgp-flowspec">

  <route-key>flow5</route-key>

  <path-id>5</path-id>

  <flowspec>

    <destination-prefix>192.168.0.5/32</destination-prefix>

  </flowspec>

  <attributes>    
    <origin>

      <value>igp</value>

    </origin>
    <as-path/>

    <local-pref>

      <pref>100</pref>

    </local-pref>
    <extended-communities>

        <transitive>true</transitive>

        <traffic-rate-extended-community>

          <informative-as>12</informative-as>


        </traffic-rate-extended-community>

       </extended-communities>
   </attributes>     

</flowspec-route>
edit retag flag offensive close merge delete