openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
875 stars 643 forks source link

Request to make routing policy BGP action "set-community" to be more flexible #163

Open abhiramkalluru opened 5 years ago

abhiramkalluru commented 5 years ago

Following is the YANG model for "set community" BGP action:

openconfig-routing-policy:policy-definitions {
   policy-definition {
      statements {
         statement[ name ] {
             ...
             ...
             actions {
                 ...
                 ...
                 oc-bgp-pol:bgp-actions {
                     ...
                     ...
                     oc-bgp-pol:set-community {
                         oc-bgp-pol:config {
                             oc-bgp-pol:method (enum: INLINE, REFERENCE)
                             oc-bgp-pol:options (enum: ADD, REMOVE, REPLACE) 
                         }
                         oc-bgp-pol:inline {
                             oc-bgp-pol:config {
                                 oc-bgp-pol:communities (leaf-list)
                             }
                         }
                         oc-bgp-pol:reference {
                             oc-bgp-pol:config {
                                 oc-bgp-pol:community-set-ref (leafref)
                             }
                         }
                     }
                 }
             }
         }
      }
   }
}

Multiple vendors in the networking industry support ADD & REMOVE community operations in the same statement but above YANG model allows only one of the community operations, i.e., either ADD or REMOVE or REPLACE. I would like to request modifications to the YANG model for making it more flexible.

Thanks & Regards, Abhiram.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.