tools: visualize RIB dataset in nfd-status
refs #1749
Change-Id: Ia11b88187635ffa4eda4b829afd6a20120765d58
diff --git a/docs/_static/nfd-status.xsd b/docs/_static/nfd-status.xsd
index 829ba7c..425bbd8 100644
--- a/docs/_static/nfd-status.xsd
+++ b/docs/_static/nfd-status.xsd
@@ -47,8 +47,8 @@
<xs:complexType name="faceFlagsType">
<xs:sequence>
- <xs:element type="xs:string" name="local" maxOccurs="1" minOccurs="0"/>
- <xs:element type="xs:string" name="on-demand" maxOccurs="1" minOccurs="0"/>
+ <xs:element type="xs:string" name="local" minOccurs="0"/>
+ <xs:element type="xs:string" name="on-demand" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
@@ -57,9 +57,9 @@
<xs:element type="xs:nonNegativeInteger" name="faceId"/>
<xs:element type="xs:anyURI" name="remoteUri"/>
<xs:element type="xs:anyURI" name="localUri"/>
- <xs:element type="xs:duration" name="expirationPeriod" maxOccurs="1" minOccurs="0"/>
+ <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
<xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
- <xs:element type="nfd:faceFlagsType" name="flags" maxOccurs="1" minOccurs="0"/>
+ <xs:element type="nfd:faceFlagsType" name="flags" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
@@ -95,6 +95,35 @@
</xs:sequence>
</xs:complexType>
+<xs:complexType name="routeType">
+ <xs:sequence>
+ <xs:element type="xs:nonNegativeInteger" name="faceId"/>
+ <xs:element type="xs:nonNegativeInteger" name="origin"/>
+ <xs:element type="xs:nonNegativeInteger" name="cost"/>
+ <xs:element type="xs:nonNegativeInteger" name="flags"/>
+ <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="ribEntryType">
+ <xs:sequence>
+ <xs:element type="xs:anyURI" name="prefix"/>
+ <xs:element name="routes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="ribType">
+ <xs:sequence>
+ <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
+ </xs:sequence>
+</xs:complexType>
+
<xs:complexType name="strategyType">
<xs:sequence>
<xs:element type="xs:anyURI" name="name"/>
@@ -122,6 +151,7 @@
<xs:element type="nfd:channelsType" name="channels"/>
<xs:element type="nfd:facesType" name="faces"/>
<xs:element type="nfd:fibType" name="fib"/>
+ <xs:element type="nfd:ribType" name="rib"/>
<xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
</xs:sequence>
</xs:complexType>