This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
forked from tumblr/collins
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tumblr#93 from cburroughs/optional-vlan-name
optionally make vlan name optional
- Loading branch information
Showing
7 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package util | ||
package config | ||
|
||
object LldpConfig extends Configurable { | ||
override val namespace = "lldp" | ||
override val referenceConfigFilename = "lldp_reference.conf" | ||
|
||
def requireVlanName = getBoolean("requireVlanName", true) | ||
|
||
override protected def validateConfig() { | ||
requireVlanName | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
lldp { | ||
# Refuse to accept lldp information with no name (aka | ||
# description) | ||
requireVlanName = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<lldp label="LLDP neighbors"> | ||
<interface label="Interface" name="eth0" via="LLDP" rid="1" age="0 day, 00:00:44"> | ||
<chassis label="Chassis"> | ||
<id label="ChassisID" type="mac">00:00:00:00:00:00</id> | ||
<name label="SysName">laxb-101</name> | ||
<descr label="SysDescr">HP Switch </descr> | ||
<capability label="Capability" type="Bridge" enabled="on"/> | ||
<capability label="Capability" type="Router" enabled="off"/> | ||
</chassis> | ||
<port label="Port"> | ||
<id label="PortID" type="local">9</id> | ||
<descr label="PortDescr">A9</descr> | ||
<auto-negotiation label="PMD autoneg" supported="yes" enabled="yes"> | ||
<advertised label="Adv" type="10Base-T" hd="yes" fd="yes"/> | ||
<advertised label="Adv" type="100Base-TX" hd="yes" fd="yes"/> | ||
<advertised label="Adv" type="1000Base-T" hd="no" fd="yes"/> | ||
<current label="MAU oper type">1000BaseTFD - Four-pair Category 5 UTP, full duplex mode</current> | ||
</auto-negotiation> | ||
<power label="MDI Power" supported="yes" enabled="yes" paircontrol="no"> | ||
<device-type label="Device type">PSE</device-type> | ||
<pairs label="Power pairs">signal</pairs> | ||
<class label="Class">class 0</class> | ||
</power> | ||
</port> | ||
<vlan label="VLAN" vlan-id="100" pvid="yes"/> | ||
</interface> | ||
<interface label="Interface" name="eth1" via="LLDP" rid="1" age="0 day, 00:00:44"> | ||
<chassis label="Chassis"> | ||
<id label="ChassisID" type="mac">00:00:00:00:00:00</id> | ||
<name label="SysName">laxb-101</name> | ||
<descr label="SysDescr">HP Switch</descr> | ||
<capability label="Capability" type="Bridge" enabled="on"/> | ||
<capability label="Capability" type="Router" enabled="off"/> | ||
</chassis> | ||
<port label="Port"> | ||
<id label="PortID" type="local">65</id> | ||
<descr label="PortDescr">C17</descr> | ||
<auto-negotiation label="PMD autoneg" supported="yes" enabled="yes"> | ||
<advertised label="Adv" type="10Base-T" hd="yes" fd="yes"/> | ||
<advertised label="Adv" type="100Base-TX" hd="yes" fd="yes"/> | ||
<advertised label="Adv" type="1000Base-T" hd="no" fd="yes"/> | ||
<current label="MAU oper type">1000BaseTFD - Four-pair Category 5 UTP, full duplex mode</current> | ||
</auto-negotiation> | ||
<power label="MDI Power" supported="yes" enabled="yes" paircontrol="no"> | ||
<device-type label="Device type">PSE</device-type> | ||
<pairs label="Power pairs">signal</pairs> | ||
<class label="Class">class 0</class> | ||
</power> | ||
</port> | ||
<vlan label="VLAN" vlan-id="101" pvid="yes"/> | ||
</interface> | ||
</lldp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters