From 09dbe98c594442b144de16a34cc30ca6b631e064 Mon Sep 17 00:00:00 2001 From: Ashvin Deodhar Date: Mon, 15 Apr 2019 15:58:44 -0700 Subject: [PATCH] Add CNS api examples for create and delete HNS networks (#337) * Add examples for create and delete hns network APIs --- examples/cns/create-hns-network.json | 10 ++++++++++ examples/cns/delete-hns-network.json | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 examples/cns/create-hns-network.json create mode 100644 examples/cns/delete-hns-network.json diff --git a/examples/cns/create-hns-network.json b/examples/cns/create-hns-network.json new file mode 100644 index 000000000..ff8808854 --- /dev/null +++ b/examples/cns/create-hns-network.json @@ -0,0 +1,10 @@ +{ + "NetworkName": "hnsnw", + "NetworkType": "l2tunnel", + "Subnets": [ + { + "AddressPrefix": "192.168.255.0/30", + "GatewayAddress": "192.168.255.1" + } + ] +} diff --git a/examples/cns/delete-hns-network.json b/examples/cns/delete-hns-network.json new file mode 100644 index 000000000..6888117a5 --- /dev/null +++ b/examples/cns/delete-hns-network.json @@ -0,0 +1,3 @@ +{ + "NetworkName": "hnsnw" +}