From 2fc72b4173000fde389caac72413aa5ae8d5a519 Mon Sep 17 00:00:00 2001 From: Juraj Sebin Date: Fri, 13 Dec 2013 15:35:52 +0100 Subject: [PATCH] model of switch features in md-sal flow-node-inventory.yang: added container switch-features into flow-node which contains list of different capabilities Change-Id: Icee61676c3e7e2dc2391aac8c4995f51d05d84a3 Signed-off-by: Juraj Sebin --- .../src/main/yang/flow-node-inventory.yang | 79 ++++++++++++++++++- 1 file changed, 76 insertions(+), 3 deletions(-) diff --git a/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang b/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang index d717e87f76..e55c50fb29 100644 --- a/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang +++ b/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang @@ -15,7 +15,60 @@ module flow-node-inventory { revision "2013-08-19" { description "Flow Capable Node extensions to the Inventory model"; } - + + identity feature-capability { + } + + identity flow-feature-capability-flow-stats { + description "Flow statistics"; + base feature-capability; + } + + identity flow-feature-capability-table-stats { + description "Table statistics"; + base feature-capability; + } + + identity flow-feature-capability-port-stats { + description "Port statistics"; + base feature-capability; + } + + identity flow-feature-capability-stp { + description "802.1d spanning tree"; + base feature-capability; + } + + identity flow-feature-capability-reserved { + description "Reserved, must be zero"; + base feature-capability; + } + + identity flow-feature-capability-ip-reasm { + description "Can reassemble IP fragments"; + base feature-capability; + } + + identity flow-feature-capability-queue-stats { + description "Queue statistics"; + base feature-capability; + } + + identity flow-feature-capability-arp-match-ip { + description "Match IP addresses in ARP pkts"; + base feature-capability; + } + + identity flow-feature-capability-group-stats { + description "Group statistics"; + base feature-capability; + } + + identity flow-feature-capability-port-blocked { + description "Switch will block looping ports"; + base feature-capability; + } + grouping feature { leaf support-state { type inv:support-type; @@ -70,7 +123,8 @@ module flow-node-inventory { uses meter:meter; } } - + + grouping flow-node { leaf manufacturer { @@ -122,6 +176,24 @@ module flow-node-inventory { } } } + + container switch-features { + + leaf max_buffers { + type uint32; + } + + leaf max_tables { + type uint8; + } + + leaf-list capabilities { + type identityref { + base feature-capability; + } + } + + } } grouping flow-node-connector { @@ -149,9 +221,10 @@ module flow-node-inventory { ext:augment-identifier "flow-capable-node-connector-update-fields"; uses flow-node-connector; } - + augment "/inv:node-connector-updated" { ext:augment-identifier "flow-capable-node-connector-updated"; uses flow-node-connector; } + } \ No newline at end of file -- 2.36.6