diff options
author | Stuart Mackie <wsmackie@juniper.net> | 2017-03-23 06:19:54 -0700 |
---|---|---|
committer | Stuart Mackie <wsmackie@juniper.net> | 2017-03-23 06:19:54 -0700 |
commit | 88df88a19674ccc0017836941b8ee32eaadf19fb (patch) | |
tree | f930c90f75846ec8d8e33cf27325ff8fafc85d5c /charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk | |
parent | 9f50a40437477432a21b326b15c343ca6b8fe516 (diff) |
Deleted charms with wrong license. Will source them differently in future.
Change-Id: I0fc99ea03c6b6ca4701e63793cb2be60e56c7588
Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
Diffstat (limited to 'charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk')
-rw-r--r-- | charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk b/charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk deleted file mode 100644 index d8e5851..0000000 --- a/charms/trusty/neutron-contrail/scripts/vrouter-interfaces.awk +++ /dev/null @@ -1,38 +0,0 @@ -function strip(s) -{ - sub(/^[[:blank:]]+/, "", s) - sub(/[[:blank:]]+$/, "", s) - return s -} - -/^[[:blank:]]*(iface|mapping|auto|allow-[^ ]+|source) / { - s_iface = 0; iface = 0 -} - -$0 ~ "^[[:blank:]]*auto (" interface "|vhost0)[[:blank:]]*$" { print "#" $0; next } - -$0 ~ "^[[:blank:]]*iface (" interface "|vhost0) " { - s_iface = 1 - if ($2 == interface) { - iface = 1 - print "iface", interface, $3, "manual" > interface_cfg - print "iface vhost0", $3, $4 > vrouter_cfg - } - print "#" $0 - next -} - -s_iface == 1 { - if (iface == 1) { - if (match($1, "^address|netmask|broadcast|metric|gateway$")) { - cfg = vrouter_cfg - } else { - cfg = interface_cfg - } - print " " strip($0) > cfg - } - print "#" $0 - next -} - -{ print $0 } |