Skip to content

Commit b7a8dec

Browse files
committed
Update vyatta-cjdns-updateconf
1 parent 8a9303b commit b7a8dec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vyatta-cjdns/opt/vyatta/sbin/vyatta-cjdns-updateconf

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def updateEthernetBindTo(interface, endpoint):
122122
def updateEthernetBeacon(interface, beaconmode):
123123
if beaconmode == "none":
124124
data['interfaces']['ETHInterface'][int(interface)]['beacon'] = 0
125-
if beaconmode == "accept":
125+
elif beaconmode == "listen":
126126
data['interfaces']['ETHInterface'][int(interface)]['beacon'] = 1
127-
elif beaconmode == "accept-send":
127+
elif beaconmode == "listen-send":
128128
data['interfaces']['ETHInterface'][int(interface)]['beacon'] = 2
129129
else:
130130
data['interfaces']['ETHInterface'][int(interface)]['beacon'] = int(beaconmode)

vyatta-cjdns/opt/vyatta/share/vyatta-cfg/templates/interfaces/cjdns/node.tag/ethernet-interface/node.tag/beacon/node.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ help: Beacon mode
33
val_help: u32; Beacon mode (0 is none, 1 is listen, 2 is listen-send)
44
val_help: txt; Beacon mode ("none", "listen" or "listen-send")
55
allowed: echo "none listen listen-send"
6-
default: 0
6+
default: "none"
77

88
create: /opt/vyatta/sbin/vyatta-cjdns-updateconf $VAR(../../@) updateEthernetBeacon $VAR(../@) $VAR(@)
99
update: /opt/vyatta/sbin/vyatta-cjdns-updateconf $VAR(../../@) updateEthernetBeacon $VAR(../@) $VAR(@)

0 commit comments

Comments
 (0)