diff options
Diffstat (limited to '')
-rw-r--r-- | yang/example/ietf-rip.json | 40 | ||||
-rw-r--r-- | yang/example/ripd.json | 47 | ||||
-rw-r--r-- | yang/example/ripd.xml | 35 |
3 files changed, 122 insertions, 0 deletions
diff --git a/yang/example/ietf-rip.json b/yang/example/ietf-rip.json new file mode 100644 index 0000000..bc76207 --- /dev/null +++ b/yang/example/ietf-rip.json @@ -0,0 +1,40 @@ +{ + "ietf-interfaces:interfaces": { + "interface": [ + { + "description": "Engineering", + "name": "eth0" + } + ] + }, + "ietf-routing:routing": { + "control-plane-protocols": { + "control-plane-protocol": [ + { + "name": "main", + "type": "ietf-rip:ripv2", + "ietf-rip:rip": { + "default-metric": "2", + "distance": "80", + "interfaces": { + "interface": [ + { + "interface": "eth0", + "split-horizon": "poison-reverse" + } + ] + }, + "originate-default-route": { + "enabled": "true" + }, + "timers": { + "flush-interval": "241", + "holddown-interval": "181", + "update-interval": "31" + } + } + } + ] + } + } +} diff --git a/yang/example/ripd.json b/yang/example/ripd.json new file mode 100644 index 0000000..0004062 --- /dev/null +++ b/yang/example/ripd.json @@ -0,0 +1,47 @@ +{ + "frr-interface:lib": { + "interface": [ + { + "name": "eth0", + "vrf": "default", + "description": "engineering", + "frr-ripd:rip": { + "split-horizon": "poison-reverse", + "v2-broadcast": "true", + "version-receive": "1", + "version-send": "1" + } + }, + { + "name": "eth1", + "vrf": "default", + "description": "marketing" + } + ] + }, + "frr-ripd:ripd": { + "instance": [ + { + "vrf": "default", + "allow-ecmp": "true", + "distance": { + "source": [ + { + "distance": "25", + "prefix": "172.16.1.0/24" + } + ] + }, + "redistribute": [ + { + "metric": "3", + "protocol": "ospf" + } + ], + "static-route": [ + "10.0.1.0/24" + ] + } + ] + } +} diff --git a/yang/example/ripd.xml b/yang/example/ripd.xml new file mode 100644 index 0000000..2feddde --- /dev/null +++ b/yang/example/ripd.xml @@ -0,0 +1,35 @@ +<lib xmlns="http://frrouting.org/yang/interface"> + <interface> + <name>eth0</name> + <vrf>default</vrf> + <description>engineering</description> + <rip xmlns="http://frrouting.org/yang/ripd"> + <split-horizon>poison-reverse</split-horizon> + <version-receive>1</version-receive> + <version-send>1</version-send> + <v2-broadcast>true</v2-broadcast> + </rip> + </interface> + <interface> + <name>eth1</name> + <vrf>default</vrf> + <description>marketing</description> + </interface> +</lib> +<ripd xmlns="http://frrouting.org/yang/ripd"> + <instance> + <vrf>default</vrf> + <allow-ecmp>true</allow-ecmp> + <static-route>10.0.1.0/24</static-route> + <distance> + <source> + <prefix>172.16.1.0/24</prefix> + <distance>25</distance> + </source> + </distance> + <redistribute> + <protocol>ospf</protocol> + <metric>3</metric> + </redistribute> + </instance> +</ripd> |