summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-07-30 00:31:40 +0700
committerGitHub <noreply@github.com>2018-07-30 00:31:40 +0700
commit4766e09407ac5d8831ab7c2ec06a74cfe3fed633 (patch)
tree68cd03d2d0248e913937cbcd9d8c125f3543751a
parent54cd6841293b4f69a32719e23a1858ead6bfde91 (diff)
parent6b7fe85ac5a6c6ba44e08e6d36b76be1cfeb1774 (diff)
downloadvyatta-cfg-system-4766e09407ac5d8831ab7c2ec06a74cfe3fed633.tar.gz
vyatta-cfg-system-4766e09407ac5d8831ab7c2ec06a74cfe3fed633.zip
Merge branch 'current' into current
-rw-r--r--Makefile.am2
-rw-r--r--cfg-version/vrrp@2 (renamed from cfg-version/vrrp@1)0
-rw-r--r--debian/changelog8
-rw-r--r--templates/interfaces/bonding/node.tag/vif-s/node.def14
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.def14
5 files changed, 36 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 553788b9..60c90de6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,7 @@ cronhourly_SCRIPTS = sysconf/vyatta-logrotate-hourly
rsyslogdir = /etc/rsyslog.d
#rsyslog_DATA = sysconf/vyatta-log.conf
-curver_DATA = cfg-version/vrrp@1
+curver_DATA = cfg-version/vrrp@2
curver_DATA += cfg-version/system@8
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
diff --git a/cfg-version/vrrp@1 b/cfg-version/vrrp@2
index e69de29b..e69de29b 100644
--- a/cfg-version/vrrp@1
+++ b/cfg-version/vrrp@2
diff --git a/debian/changelog b/debian/changelog
index db30f2bd..5aaaaaa7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,13 @@
+vyatta-cfg-system (0.20.44+vyos2+current13) unstable; urgency=medium
+
+ * Update the VRRP syntax version file to 2.
+
+ -- Daniil Baturin <daniil@baturin.org> Fri, 27 Jul 2018 10:21:44 +0200
+
vyatta-cfg-system (0.20.44+vyos2+current12) unstable; urgency=medium
* T736: Rewrite remote logging (syslog) to XML/Python
-
+
-- hagbard <vyosdev@derith.de> Tue, 24 Jul 2018 11:13:36 -0700
vyatta-cfg-system (0.20.44+vyos2+current11) unstable; urgency=medium
diff --git a/templates/interfaces/bonding/node.tag/vif-s/node.def b/templates/interfaces/bonding/node.tag/vif-s/node.def
index dcec3900..fd490689 100644
--- a/templates/interfaces/bonding/node.tag/vif-s/node.def
+++ b/templates/interfaces/bonding/node.tag/vif-s/node.def
@@ -5,6 +5,20 @@ help: QinQ TAG-S Virtual Local Area Network (VLAN) ID
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 and 4094"
val_help: u32:0-4094; VLAN ID
+create: ETHERTYPE=`echo "$VAR(ethertype/@)"`
+ if [ $ETHERTYPE == "0x88A8" ]; then ETHTYPE=802.1ad; fi
+ if [ $ETHERTYPE == "0x8100" ]; then ETHTYPE=802.1Q; fi
+
+ if ! ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan proto $ETHTYPE id $VAR(@)
+ then echo "Error creating VLAN device $VAR(../@).$VAR(@)"
+ exit 1
+ fi
+ # if parent is up, then bring VLAN up
+ if [ $(( $(cat /sys/class/net/$VAR(../@)/flags) & 1 )) -eq 1 ]
+ then ip link set "$VAR(../@).$VAR(@)" up
+ fi
+ /opt/vyatta/sbin/vyatta-link-detect "$VAR(../@).$VAR(@)" on
+
delete: ETHERTYPE=`echo "$VAR(ethertype/@)"`
if [ $ETHERTYPE == "0x88A8" ]; then ETHTYPE=802.1ad; fi
if [ $ETHERTYPE == "0x8100" ]; then ETHTYPE=802.1Q; fi
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.def
index c6483ac0..204b68c7 100644
--- a/templates/interfaces/ethernet/node.tag/vif-s/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.def
@@ -5,6 +5,20 @@ help: QinQ TAG-S Virtual Local Area Network (VLAN) ID
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 and 4094"
val_help: u32:0-4094; VLAN ID
+create: ETHERTYPE=`echo "$VAR(ethertype/@)"`
+ if [ $ETHERTYPE == "0x88A8" ]; then ETHTYPE=802.1ad; fi
+ if [ $ETHERTYPE == "0x8100" ]; then ETHTYPE=802.1Q; fi
+
+ if ! ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan proto $ETHTYPE id $VAR(@)
+ then echo "Error creating VLAN device $VAR(../@).$VAR(@)"
+ exit 1
+ fi
+ # if parent is up, then bring VLAN up
+ if [ $(( $(cat /sys/class/net/$VAR(../@)/flags) & 1 )) -eq 1 ]
+ then ip link set "$VAR(../@).$VAR(@)" up
+ fi
+ /opt/vyatta/sbin/vyatta-link-detect "$VAR(../@).$VAR(@)" on
+
delete: ETHERTYPE=`echo "$VAR(ethertype/@)"`
if [ $ETHERTYPE == "0x88A8" ]; then ETHTYPE=802.1ad; fi
if [ $ETHERTYPE == "0x8100" ]; then ETHTYPE=802.1Q; fi