Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Sticky This Topic
- Bookmark
- Subscribe
- Printer Friendly Page
Kudos: 2
disable-link-detect does not work properly
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-20-2014 05:59 AM
The ethernet link detection works even if disable-link-detection option has been enabled
adik@rt-msk20:~$ show version Version: v1.5.0 Build ID: 4677648 Build on: 06/20/14 13:01 Copyright: 2012-2014 Ubiquiti Networks, Inc. HW model: EdgeRouter Lite 3-Port HW S/N: XXXXXXXXXX Uptime: 10:05:56 up 6 min, 1 user, load average: 0.18, 0.38, 0.22 adik@rt-msk20:~$ sudo vtysh -c 'show running-config' |grep -A3 eth0 interface eth0 ipv6 nd suppress-ra link-detect ! adik@rt-msk20:~$ configure adik@rt-msk20# set interfaces ethernet eth0 disable-link-detect adik@rt-msk20# commit adik@rt-msk20# sudo vtysh -c 'show running-config' |grep -A3 eth0 interface eth0 ipv6 nd suppress-ra link-detect ! adik@rt-msk20# delete interfaces ethernet eth0 disable-link-detect adik@rt-msk20# commit adik@rt-msk20# sudo vtysh -c 'show running-config' |grep -A3 eth0 interface eth0 ipv6 nd suppress-ra !
The problem was solved when I replaced update and delete actions
--- /opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def~ +++ /opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/disable-link-detect/node.def @@ -1,3 +1,3 @@ help: Ignore link state changes -update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on -delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off +update:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) off +delete:/opt/vyatta/sbin/vyatta-link-detect $VAR(../@) on
Highlighted
Kudos: 5469
Solutions: 1656
Contributions: 2
Re: disable-link-detect does not work properly
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-20-2014 09:10 AM
Good catch, that looks like an "inherited" bug that's been there for years! Thanks for your contributions!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Sticky This Topic
- Bookmark
- Subscribe
- Printer Friendly Page