Skip to content

Commit

Permalink
Add support for '/routing bgp' paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vint2k committed Apr 13, 2024
1 parent 8351bff commit e2a6f48
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
64 changes: 64 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4364,6 +4364,23 @@ def join_path(path):
},
),
),
('routing', 'bgp', 'aggregate'): APIData(
unversioned=VersionedAPIData(
primary_keys=('prefix',),
fully_understood=True,
fields={
'advertise-filter': KeyInfo(),
'attribute-filter': KeyInfo(),
'disabled': KeyInfo(default=False),
'include-igp': KeyInfo(default=False),
'inherit-attributes': KeyInfo(default=True),
'instance': KeyInfo(required=True),
'prefix': KeyInfo(required=True),
'summary-only': KeyInfo(default=True),
'suppress-filter': KeyInfo(),
},
),
),
('routing', 'bgp', 'connection'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down Expand Up @@ -4448,6 +4465,53 @@ def join_path(path):
},
),
),
('routing', 'bgp', 'network'): APIData(
unversioned=VersionedAPIData(
primary_keys=('network',),
fully_understood=True,
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'network': KeyInfo(required=True),
'synchronize': KeyInfo(default=True),
},
),
),
('routing', 'bgp', 'peer'): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
fully_understood=True,
fields={
'address-families': KeyInfo(default='ip'),
'allow-as-in': KeyInfo(can_disable=True, remove_value=''),
'as-override': KeyInfo(default=False),
'cisco-vpls-nlri-len-fmt': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'default-originate': KeyInfo(default='never'),
'disabled': KeyInfo(default=False),
'hold-time': KeyInfo(default='3m'),
'in-filter': KeyInfo(),
'instance': KeyInfo(),
'keepalive-time': KeyInfo(can_disable=True, remove_value=''),
'max-prefix-limit': KeyInfo(can_disable=True, remove_value=''),
'max-prefix-restart-time': KeyInfo(can_disable=True, remove_value=''),
'multihop': KeyInfo(default=False),
'name': KeyInfo(),
'nexthop-choice': KeyInfo(default='default'),
'passive': KeyInfo(default=False),
'out-filter': KeyInfo(),
'remote-address': KeyInfo(required=True),
'remote-as': KeyInfo(required=True),
'remote-port': KeyInfo(can_disable=True, remove_value=''),
'remove-private-as': KeyInfo(default=False),
'route-reflect': KeyInfo(default=False),
'tcp-md5-key': KeyInfo(),
'ttl': KeyInfo(default='default'),
'update-source': KeyInfo(can_disable=True, remove_value='none'),
'use-bfd': KeyInfo(default=False),
},
),
),
('routing', 'bgp', 'template'): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
Expand Down
3 changes: 3 additions & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@
- queue tree
- radius
- radius incoming
- routing bgp aggregate
- routing bgp connection
- routing bgp network
- routing bgp peer
- routing bgp instance
- routing bgp template
- routing filter rule
Expand Down
3 changes: 3 additions & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@
- queue tree
- radius
- radius incoming
- routing bgp aggregate
- routing bgp connection
- routing bgp network
- routing bgp peer
- routing bgp instance
- routing bgp template
- routing filter rule
Expand Down

0 comments on commit e2a6f48

Please sign in to comment.