Skip to content

Commit

Permalink
fix(routeros_ip_neighbor_discovery_settings): Multiple fields not fou…
Browse files Browse the repository at this point in the history
…nd in schema (introduced in 7.15)

Fixes #491
  • Loading branch information
vaerh committed Jun 27, 2024
1 parent 563401b commit 7f44443
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion routeros/resource_ip_neighbor_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
}
*/

// https://help.mikrotik.com/docs/display/ROS/MAC+server
// https://help.mikrotik.com/docs/display/ROS/Neighbor+discovery
func ResourceIpNeighborDiscoverySettings() *schema.Resource {
resSchema := map[string]*schema.Schema{
MetaResourcePath: PropResourcePath("/ip/neighbor/discovery-settings"),
Expand All @@ -26,6 +26,22 @@ func ResourceIpNeighborDiscoverySettings() *schema.Resource {
Description: "Interface list on which members the discovery protocol will run on.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"lldp_mac_phy_config": {
Type: schema.TypeBool,
Optional: true,
Description: "Whether to send MAC/PHY Configuration/Status TLV in LLDP, which indicates the interface " +
"capabilities, current setting of the duplex status, bit rate, and auto-negotiation. Only applies " +
"to the Ethernet interfaces. While TLV is optional in LLDP, it is mandatory when sending LLDP-MED, " +
"meaning this TLV will be included when necessary even though the property is configured as disabled.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"lldp_max_frame_size": {
Type: schema.TypeBool,
Optional: true,
Description: "Whether to send Maximum Frame Size TLV in LLDP, which indicates the maximum frame size capability" +
" of the interface in bytes (`l2mtu + 18`). Only applies to the Ethernet interfaces.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"lldp_med_net_policy_vlan": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -44,6 +60,13 @@ func ResourceIpNeighborDiscoverySettings() *schema.Resource {
avoid LLDP-MED misconfiguration.`,
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"lldp_poe_power": {
Type: schema.TypeBool,
Optional: true,
Description: "Two specific TLVs facilitate Power over Ethernet (PoE) management between Power Sourcing " +
"Equipment (PSE) and Powered Devices (PD).",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"mode": {
Type: schema.TypeString,
Optional: true,
Expand Down

0 comments on commit 7f44443

Please sign in to comment.