From: Bruce Davie Date: Fri, 1 Nov 2013 17:53:23 +0000 (-0700) Subject: vtep: add fault notifications to physical switch and ports X-Git-Tag: sliver-openvswitch-2.0.90-1~6^2~43 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=255842d95365dbe1737bcc39b0daf47ce7f84c0d vtep: add fault notifications to physical switch and ports Add a "switch_fault" and "port_fault" column to the appropriate tables in the VTEP schema. Signed-off-by: Bruce Davie Signed-off-by: Ben Pfaff --- diff --git a/vtep/vtep.ovsschema b/vtep/vtep.ovsschema index d03d96d51..017183aa3 100644 --- a/vtep/vtep.ovsschema +++ b/vtep/vtep.ovsschema @@ -1,6 +1,6 @@ { "name": "hardware_vtep", - "cksum": "825115144 5318", + "cksum": "1365749839 5604", "tables": { "Global": { "columns": { @@ -24,7 +24,11 @@ "management_ips": { "type": {"key": {"type": "string"}, "min": 0, "max": "unlimited"}}, "tunnel_ips": { - "type": {"key": {"type": "string"}, "min": 0, "max": "unlimited"}}}, + "type": {"key": {"type": "string"}, "min": 0, "max": "unlimited"}}, + "switch_fault_status": { + "type": { + "key": "string", "min": 0, "max": "unlimited"}, + "ephemeral": true}}, "indexes": [["name"]]}, "Physical_Port": { "columns": { @@ -40,7 +44,11 @@ "minInteger": 0, "maxInteger": 4095}, "value": {"type": "uuid", "refTable": "Logical_Binding_Stats"}, - "min": 0, "max": "unlimited"}}}}, + "min": 0, "max": "unlimited"}}, + "port_fault_status": { + "type": { + "key": "string", "min": 0, "max": "unlimited"}, + "ephemeral": true}}}, "Logical_Binding_Stats": { "columns": { "bytes_from_local": {"type": "integer"}, @@ -154,4 +162,4 @@ "ephemeral": true}}, "indexes": [["target"]], "isRoot": false}}, - "version": "1.0.0"} + "version": "1.1.0"} diff --git a/vtep/vtep.xml b/vtep/vtep.xml index 39404790c..db8d4089e 100644 --- a/vtep/vtep.xml +++ b/vtep/vtep.xml @@ -274,6 +274,29 @@ banner. + +

+ An entry in this column indicates to the NVC that this switch + has encountered a fault. The switch must clear this column + when the fault has been cleared. +

+ + + Indicates that the switch has been unable to process MAC + entries requested by the NVC due to lack of table resources. + + + + Indicates that the switch has been unable to create tunnels + requested by the NVC due to lack of resources. + + + + Indicates that an error has occurred in the switch but that no + more specific information is available. + + +
@@ -306,6 +329,27 @@ An extended description for the port. + +

+ An entry in this column indicates to the NVC that the physical port has + encountered a fault. The switch must clear this column when the errror + has been cleared. +

+ +

+ Indicates that a VLAN-to-logical-switch mapping requested by + the controller could not be instantiated by the switch + because of a conflict with local configuration. +

+
+ +

+ Indicates that an error has occurred on the port but that no + more specific information is available. +

+
+
+
@@ -453,7 +497,7 @@

- A MAC address that has been learned by the NSC. + A MAC address that has been learned by the NVC. @@ -526,7 +570,7 @@

- A MAC address that has been learned by the NSC. + A MAC address that has been learned by the NVC.

The keyword unknown-dst is used as a special