From 11b636133ab9bc324e1b7b738166333b2c78e6ef Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 22 Mar 2017 19:11:38 +0100 Subject: [PATCH] Add usage comment to patch ip4_6_static.rb --- src/onedb/patches/ip4_ip6_static.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/onedb/patches/ip4_ip6_static.rb b/src/onedb/patches/ip4_ip6_static.rb index 5effc77b25..739e448df9 100644 --- a/src/onedb/patches/ip4_ip6_static.rb +++ b/src/onedb/patches/ip4_ip6_static.rb @@ -14,6 +14,18 @@ # limitations under the License. # #--------------------------------------------------------------------------- # +# This patch changes the type of an AR to IP4_6_STATIC and also lets +# us add or change parameters. The AR must be specified in the extra +# option. For example, to change network 2, ar 1 and add ip6 and +# prefix_length you can use: +# +# onedb patch -s one.db ip4_6_static.rb \ +# --extra vn=2;ar=1;ip6=2001::1;prefix_length=48 +# +# You can also specify several ARs separated by ,: +# +# vn=3;ar=0;ip6=2001::1;prefix_length=48,vn=3;ar=1;ip6=2001::2;prefix_length=64 + if !ONE_LOCATION LOG_LOCATION = "/var/log/one" else