Fixed service port create failure
Also enhanced service network and port codec and added more unit tests
Change-Id: I523acc49dc1472520bd15a47f9a591cd95297ea0
diff --git a/src/test/resources/org/opencord/cordvtn/codec/service-port.json b/src/test/resources/org/opencord/cordvtn/codec/service-port.json
new file mode 100644
index 0000000..c50454e
--- /dev/null
+++ b/src/test/resources/org/opencord/cordvtn/codec/service-port.json
@@ -0,0 +1,20 @@
+{
+ "servicePort": {
+ "id": "port-1",
+ "network_id": "network-1",
+ "name": "tap1",
+ "floating_address_pairs": [
+ {
+ "ip_address": "192.168.0.1",
+ "mac_address": "02:42:0a:06:01:01"
+ },
+ {
+ "ip_address": "192.168.0.2",
+ "mac_address": "02:42:0a:06:01:02"
+ }
+ ],
+ "ip_address": "10.0.0.1",
+ "mac_address": "00:00:00:00:00:01",
+ "vlan_id": 222
+ }
+}
\ No newline at end of file