Skip to content

Commit ba6f0a8

Browse files
Add Dell Enterprise SONiC 'ip_neighbor_interfaces' module (#499)
* Add Dell Enterprise SONiC 'ip_neighbor_interfaces' module * Add module redirect * Resolve merge conflict * Address documentation review comments * Add validation for 'mac' when state is not deleted
1 parent 0ae5571 commit ba6f0a8

File tree

21 files changed

+1949
-0
lines changed

21 files changed

+1949
-0
lines changed

meta/runtime.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ plugin_routing:
5858
redirect: dellemc.enterprise_sonic.sonic_interfaces
5959
ip_neighbor:
6060
redirect: dellemc.enterprise_sonic.sonic_ip_neighbor
61+
ip_neighbor_interfaces:
62+
redirect: dellemc.enterprise_sonic.sonic_ip_neighbor_interfaces
6163
ipv6_router_advertisement:
6264
redirect: dellemc.enterprise_sonic.sonic_ipv6_router_advertisement
6365
l2_acls:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonic.py

plugins/module_utils/network/sonic/argspec/facts/facts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(self, **kwargs):
5757
'logging',
5858
'pki',
5959
'ip_neighbor',
60+
'ip_neighbor_interfaces',
6061
'ipv6_router_advertisement',
6162
'port_group',
6263
'dhcp_relay',

plugins/module_utils/network/sonic/argspec/ip_neighbor_interfaces/__init__.py

Whitespace-only changes.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# -*- coding: utf-8 -*-
3+
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved
4+
# GNU General Public License v3.0+
5+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6+
7+
"""
8+
The arg spec for the sonic_ip_neighbor_interfaces module
9+
"""
10+
11+
from __future__ import absolute_import, division, print_function
12+
__metaclass__ = type
13+
14+
15+
class Ip_neighbor_interfacesArgs(object): # pylint: disable=R0903
16+
"""The arg spec for the sonic_ip_neighbor_interfaces module
17+
"""
18+
19+
def __init__(self, **kwargs):
20+
pass
21+
22+
argument_spec = {
23+
"config": {
24+
"elements": "dict",
25+
"options": {
26+
"ipv4_neighbors": {
27+
"elements": "dict",
28+
"options": {
29+
"ip": {"required": True, "type": "str"},
30+
"mac": {"type": "str"}
31+
},
32+
"type": "list"
33+
},
34+
"ipv6_neighbors": {
35+
"elements": "dict",
36+
"options": {
37+
"ip": {"required": True, "type": "str"},
38+
"mac": {"type": "str"}
39+
},
40+
"type": "list"
41+
},
42+
"name": {"required": True, "type": "str"}
43+
},
44+
"type": "list"
45+
},
46+
"state": {
47+
"choices": ["merged", "deleted", "replaced", "overridden"],
48+
"default": "merged",
49+
"type": "str"
50+
}
51+
} # pylint: disable=C0301

plugins/module_utils/network/sonic/config/ip_neighbor_interfaces/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)