openconfig/public

Enabling Segment Routing (SR) for OSPFv2

Opened this issue · 0 comments

Hi,

We can enable SR for IS-IS with:

.../network-instance/protocols/protocol/isis/global/segment-routing/config/enabled

This segment-routing container is defined in openconfig-segment-routing.yang ("oc-sr") sr-igp-top grouping.

It was added in commit 55573d7 (openconfig-isis.yang):

   grouping isis-global-base {
     description
       "This grouping describes ISIS Global router.";

     ...
+
+    uses oc-sr:sr-igp-top;
   }

However, it would be useful to have this for OSPFv2 as well.

I believe we could similarly include sr-igp-top in .../protocol/ospfv2/global container (openconfig-ospfv2-global.yang):

   grouping ospfv2-global-structural {
     description
       "Top level structural grouping for OSPFv2 global parameters";
             
     container global {
       description
         "Configuration and operational state parameters for settings
         that are global to the OSPFv2 instance";
               
       ...
+
+      uses oc-sr:sr-igp-top;
     }     
   }

Would such inclusion be acceptable?

Thanks.
Jardel Lucca