ONOS-5595 netcfg for protection
- ProtectionConfig
- TransportEndpointDescriptionCodec
Change-Id: I79e304a20e9d1f95a4b432542738c64102550650
diff --git a/core/net/src/test/resources/org/onosproject/net/behaviour/protection/protection_config.json b/core/net/src/test/resources/org/onosproject/net/behaviour/protection/protection_config.json
new file mode 100644
index 0000000..d75dfe7
--- /dev/null
+++ b/core/net/src/test/resources/org/onosproject/net/behaviour/protection/protection_config.json
@@ -0,0 +1,26 @@
+{
+ "devices" : {
+ "of:0000000000000001" : {
+ "protection" : {
+ "paths" : [
+ {
+ "output" : {
+ "connectPoint" : { "device" : "of:0000000000000001", "port" : "1" },
+ "trafficSelector" : { "criteria" : [ {"type" : "VLAN_VID", "vlanId" : 100 }]}
+ },
+ "enabled" : true
+ },
+ {
+ "output" : {
+ "connectPoint" : { "device" : "of:0000000000000001", "port" : "2" },
+ "trafficSelector" : { "criteria" : [ {"type" : "VLAN_VID", "vlanId" : 100 }]}
+ },
+ "enabled" : true
+ }
+ ],
+ "fingerprint" : "(IntentKey_XYZW)",
+ "peer" : "of:0000000000000002"
+ }
+ }
+ }
+}