diff options
| -rw-r--r-- | yang/frr-bfdd.yang | 15 | ||||
| -rw-r--r-- | yang/frr-eigrpd.yang | 14 | ||||
| -rw-r--r-- | yang/frr-isisd.yang | 16 | ||||
| -rw-r--r-- | yang/frr-nexthop.yang | 6 | ||||
| -rw-r--r-- | yang/frr-ripd.yang | 20 | ||||
| -rw-r--r-- | yang/frr-ripngd.yang | 16 | ||||
| -rw-r--r-- | yang/frr-routing.yang | 2 | ||||
| -rw-r--r-- | yang/frr-test-module.yang | 4 | ||||
| -rw-r--r-- | yang/frr-zebra.yang | 2 | 
9 files changed, 55 insertions, 40 deletions
diff --git a/yang/frr-bfdd.yang b/yang/frr-bfdd.yang index 4b7785e690..5b434162d0 100644 --- a/yang/frr-bfdd.yang +++ b/yang/frr-bfdd.yang @@ -12,6 +12,9 @@ module frr-bfdd {    import frr-interface {      prefix frr-interface;    } +  import frr-vrf { +    prefix frr-vrf; +  }    import frr-route-types {      prefix frr-route-types;    } @@ -396,14 +399,12 @@ module frr-bfdd {            }            leaf interface { -            type string { -              length "0..16"; -            } +            type frr-interface:interface-ref;              description "Interface to use to contact peer";            }            leaf vrf { -            type string; +            type frr-vrf:vrf-ref;              description "Virtual Routing Domain name";            } @@ -441,14 +442,12 @@ module frr-bfdd {            }            leaf interface { -            type string { -              length "0..16"; -            } +            type frr-interface:interface-ref;              description "Interface to use to contact peer";            }            leaf vrf { -            type string; +            type frr-vrf:vrf-ref;              description "Virtual Routing Domain name";            } diff --git a/yang/frr-eigrpd.yang b/yang/frr-eigrpd.yang index 3d1bf3baa5..2127ac4988 100644 --- a/yang/frr-eigrpd.yang +++ b/yang/frr-eigrpd.yang @@ -12,6 +12,12 @@ module frr-eigrpd {    import frr-interface {      prefix frr-interface;    } +  import frr-vrf { +    prefix frr-vrf; +  } +  import frr-route-map { +    prefix frr-route-map; +  }    import frr-route-types {      prefix frr-route-types;    } @@ -109,9 +115,7 @@ module frr-eigrpd {        leaf vrf {          description "Virtual Routing Domain name"; -        type string { -          length "0..16"; -        } +        type frr-vrf:vrf-ref;        }        /* @@ -235,9 +239,7 @@ module frr-eigrpd {              "Applies the conditions of the specified route-map to               routes that are redistributed into the EIGRP routing               instance"; -          type string { -            length "1..max"; -          } +          type frr-route-map:route-map-ref;          }          container metrics { diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index cc959bd9fe..79941a50e7 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -15,6 +15,14 @@ module frr-isisd {      prefix frr-interface;    } +  import frr-vrf { +    prefix frr-vrf; +  } + +  import frr-route-map { +    prefix frr-route-map; +  } +    import frr-route-types {      prefix frr-route-types;    } @@ -240,9 +248,7 @@ module frr-isisd {      description        "Common optional attributes of any redistribute entry.";      leaf route-map { -      type string { -        length "1..max"; -      } +      type frr-route-map:route-map-ref;        description          "Applies the conditions of the specified route-map to routes that           are redistributed into this routing instance."; @@ -341,7 +347,7 @@ module frr-isisd {      }      leaf vrf { -      type string; +      type frr-vrf:vrf-ref;        default "default";        description          "VRF NAME."; @@ -830,7 +836,7 @@ module frr-isisd {        }        leaf vrf { -        type string; +        type frr-vrf:vrf-ref;          description            "VRF NAME.";        } diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang index 0cb0f93ee4..52155dcd16 100644 --- a/yang/frr-nexthop.yang +++ b/yang/frr-nexthop.yang @@ -156,7 +156,7 @@ module frr-nexthop {      }      leaf vrf { -      type string; +      type frr-vrf:vrf-ref;        description          "The nexthop vrf name, if different from the route.";      } @@ -167,7 +167,7 @@ module frr-nexthop {      }      leaf interface { -      type string; +      type frr-interface:interface-ref;        description          "The nexthop egress interface.";      } @@ -275,7 +275,7 @@ module frr-nexthop {        description          "List of nexthop groups, each contains group of nexthops";        leaf name { -        type string; +        type nexthop-group-ref;          description            "The nexthop-group name.";        } diff --git a/yang/frr-ripd.yang b/yang/frr-ripd.yang index f5775ab968..929c916069 100644 --- a/yang/frr-ripd.yang +++ b/yang/frr-ripd.yang @@ -12,6 +12,12 @@ module frr-ripd {    import frr-interface {      prefix frr-interface;    } +  import frr-vrf { +    prefix frr-vrf; +  } +  import frr-route-map { +    prefix frr-route-map; +  }    import frr-route-types {      prefix frr-route-types;    } @@ -72,7 +78,7 @@ module frr-ripd {          "RIP routing instance.";        leaf vrf { -        type string; +        type frr-vrf:vrf-ref;          description            "VRF name.";        } @@ -227,9 +233,7 @@ module frr-ripd {            must '. != "rip"';          }          leaf route-map { -          type string { -            length "1..max"; -          } +          type frr-route-map:route-map-ref;            description              "Applies the conditions of the specified route-map to               routes that are redistributed into the RIP routing @@ -396,7 +400,7 @@ module frr-ripd {                  "Next hop IPv4 address.";              }              leaf interface { -              type string; +              type frr-interface:interface-ref;                description                  "The interface that the route uses.";              } @@ -587,7 +591,7 @@ module frr-ripd {      input {        leaf vrf { -        type string; +        type frr-vrf:vrf-ref;          description            "VRF name identifying a specific RIP instance.             This leaf is optional for the rpc. @@ -608,7 +612,7 @@ module frr-ripd {         receives a PDU with the wrong authentication type         field.";      leaf interface-name { -      type string; +      type frr-interface:interface-ref;        description          "Describes the name of the RIP interface.";      } @@ -624,7 +628,7 @@ module frr-ripd {         receives a PDU with the wrong authentication         information.";      leaf interface-name { -      type string; +      type frr-interface:interface-ref;        description          "Describes the name of the RIP interface.";      } diff --git a/yang/frr-ripngd.yang b/yang/frr-ripngd.yang index 52e208b2c9..07d38bd416 100644 --- a/yang/frr-ripngd.yang +++ b/yang/frr-ripngd.yang @@ -12,6 +12,12 @@ module frr-ripngd {    import frr-interface {      prefix frr-interface;    } +  import frr-vrf { +    prefix frr-vrf; +  } +  import frr-route-map { +    prefix frr-route-map; +  }    import frr-route-types {      prefix frr-route-types;    } @@ -71,7 +77,7 @@ module frr-ripngd {          "RIPng routing instance.";        leaf vrf { -        type string; +        type frr-vrf:vrf-ref;          description            "VRF name.";        } @@ -170,9 +176,7 @@ module frr-ripngd {            must '. != "ripng"';          }          leaf route-map { -          type string { -            length "1..max"; -          } +          type frr-route-map:route-map-ref;            description              "Applies the conditions of the specified route-map to               routes that are redistributed into the RIPng routing @@ -298,7 +302,7 @@ module frr-ripngd {                  "Next hop IPv6 address.";              }              leaf interface { -              type string; +              type frr-interface:interface-ref;                description                  "The interface that the route uses.";              } @@ -359,7 +363,7 @@ module frr-ripngd {      input {        leaf vrf { -        type string; +        type frr-vrf:vrf-ref;          description            "VRF name identifying a specific RIPng instance.             This leaf is optional for the rpc. diff --git a/yang/frr-routing.yang b/yang/frr-routing.yang index 52607f9ad0..f8441669af 100644 --- a/yang/frr-routing.yang +++ b/yang/frr-routing.yang @@ -249,7 +249,7 @@ module frr-routing {               instance.";          }          leaf vrf { -          type string; +          type frr-vrf:vrf-ref;            description              "vrf for control-plane protocol";          } diff --git a/yang/frr-test-module.yang b/yang/frr-test-module.yang index 61915b1349..2f89ebca88 100644 --- a/yang/frr-test-module.yang +++ b/yang/frr-test-module.yang @@ -57,7 +57,7 @@ module frr-test-module {          }          container interfaces {            leaf-list interface { -            type string; +            type frr-interface:interface-ref;            }          }          container routes { @@ -69,7 +69,7 @@ module frr-test-module {                type inet:ipv4-address;              }              leaf interface { -              type string; +              type frr-interface:interface-ref;              }              leaf metric {                type uint8; diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang index 2efc45c146..782e0a4b74 100644 --- a/yang/frr-zebra.yang +++ b/yang/frr-zebra.yang @@ -2137,7 +2137,7 @@ module frr-zebra {            "The admin distance to use for imported routes.";        }        leaf route-map { -        type string; +        type frr-route-map:route-map-ref;          description            "A route-map to filter imported routes.";        }  | 
