examples/ncclient: update readme with <validate> example 96/14396/2
authorMarek Gradzki <[email protected]>
Tue, 21 Aug 2018 13:19:11 +0000 (15:19 +0200)
committerMarek Gradzki <[email protected]>
Tue, 21 Aug 2018 13:28:57 +0000 (15:28 +0200)
Change-Id: Id5aa173292d00aee0dd37d0853d46cb98e2cce05
Signed-off-by: Marek Gradzki <[email protected]>
examples/ncclient/Readme.adoc
examples/ncclient/acl/config_acl.xml [moved from examples/ncclient/acl/copy_config_acl.xml with 100% similarity]
examples/ncclient/acl/config_acl_update.xml [moved from examples/ncclient/acl/copy_config_acl_update.xml with 100% similarity]
examples/ncclient/acl/config_invalid_acl.xml [moved from examples/ncclient/acl/copy_config_unsupported-acl-type.xml with 100% similarity]
examples/ncclient/acl/test_acl.sh
examples/ncclient/acl/test_acl_update.sh
examples/ncclient/acl/test_invalid_acl.sh [deleted file]
examples/ncclient/nat/config_nat.xml [moved from examples/ncclient/nat/copy_config_nat.xml with 100% similarity]
examples/ncclient/nat/config_nat_update.xml [moved from examples/ncclient/nat/copy_config_nat_update.xml with 100% similarity]
examples/ncclient/nat/test_nat.sh
examples/ncclient/nat/test_nat_update.sh

index cc1d63e..ec856c6 100644 (file)
@@ -24,22 +24,42 @@ git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/81/71181/1 &&
 mvn clean install -pl netconf/netconf-util,netconf/netconf-netty-util,netconf/mdsal-netconf-connector
 ----
 
-== Custom HC2VPP build
+=== <validate> support:
 
 [source]
 ----
-git clone https://gerrit.fd.io/r/hc2vpp
-cd hc2vpp
+git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/56/72756/4 && git cherry-pick FETCH_HEAD
+git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/34/73034/2 && git cherry-pick FETCH_HEAD
+git fetch https://git.opendaylight.org/gerrit/netconf refs/changes/95/74795/3 && git cherry-pick FETCH_HEAD
+mvn clean install -pl netconf/mdsal-netconf-connector
 ----
 
-1. Checkout desired branch or use master branch, e.g.
+== Custom Honeycomb build
+
+Clone project, checkout desired branch or use master branch:
 [source]
 ----
-git checkout -b stable1804 origin/stable/1804
+git clone https://gerrit.fd.io/r/honeycomb
+cd honeycomb
 ----
 
-2. Build vpp-integration module from hc2vpp project:
+=== <validate> support:
+[source]
+----
+git fetch ssh://[email protected]:29418/honeycomb refs/changes/40/14040/3 && git cherry-pick FETCH_HEAD
+mvn clean install -pl infra/data-impl
+----
+
+== Custom HC2VPP build
 
+1. Clone project, checkout desired branch or use master branch:
+[source]
+----
+git clone https://gerrit.fd.io/r/hc2vpp
+cd hc2vpp
+----
+
+2. Build vpp-integration module from hc2vpp project:
 [source]
 ----
 mvn clean install -pl vpp-integration/minimal-distribution
@@ -67,21 +87,30 @@ Start vpp.
 Start honeycomb
 (either from hc2vpp builddir or using package built in previous steps).
 
-Then invoke:
+NOTE: Remember that HC by default persists config and restores it after restart.
+You can disable this behaviour using config/honeycomb.json.
+
+== <copy-config> examples
 
-ACL:
+=== ACL
 [source]
 ----
 ./acl/test_acl.sh
 ./acl/test_acl_updates.sh
 ----
 
-NAT:
+=== NAT
 [source]
 ----
 ./acl/test_nat.sh
 ./acl/test_nat_updates.sh
 ----
 
-NOTE: Remember that HC by default persists config and restores it after restart.
-You can disable this behaviour using config/honeycomb.json.
+== <validate> examples
+
+== ACL <edit-config> + <validate>
+[source]
+----
+./edit_config.py --validate acl/config_invalid_acl.xml
+----
+
index aedb842..e55296e 100755 (executable)
@@ -15,4 +15,4 @@
 
 DIR_NAME=$(dirname $0)
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_acl.xml ${DIR_NAME}/expected_config_acl.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_acl.xml ${DIR_NAME}/expected_config_acl.xml
index 6dedbfe..cb62c18 100755 (executable)
@@ -15,6 +15,6 @@
 
 DIR_NAME=$(dirname $0)
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_acl.xml ${DIR_NAME}/expected_config_acl.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_acl.xml ${DIR_NAME}/expected_config_acl.xml
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_acl_update.xml ${DIR_NAME}/expected_config_acl_update.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_acl_update.xml ${DIR_NAME}/expected_config_acl_update.xml
diff --git a/examples/ncclient/acl/test_invalid_acl.sh b/examples/ncclient/acl/test_invalid_acl.sh
deleted file mode 100755 (executable)
index aedb842..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-#
-# Copyright (c) 2018 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-DIR_NAME=$(dirname $0)
-
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_acl.xml ${DIR_NAME}/expected_config_acl.xml
index 272a1d6..b9ec896 100755 (executable)
@@ -15,4 +15,4 @@
 
 DIR_NAME=$(dirname $0)
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_nat.xml ${DIR_NAME}/expected_config_nat.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_nat.xml ${DIR_NAME}/expected_config_nat.xml
index b37e4c6..c5ae446 100755 (executable)
@@ -15,6 +15,6 @@
 
 DIR_NAME=$(dirname $0)
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_nat.xml ${DIR_NAME}/expected_config_nat.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_nat.xml ${DIR_NAME}/expected_config_nat.xml
 
-${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/copy_config_nat_update.xml ${DIR_NAME}/expected_config_nat_update.xml
+${DIR_NAME}/../test_copy_config.sh ${DIR_NAME}/config_nat_update.xml ${DIR_NAME}/expected_config_nat_update.xml