Skip to content

Commit 8eea2ed

Browse files
author
Shiva Shankar Vaddepally
committed
supporting ospfinterface, ospfrouter, bgprouter
Signed-off-by: Shiva Shankar Vaddepally <[email protected]>
1 parent e9d9811 commit 8eea2ed

12 files changed

Lines changed: 862 additions & 9 deletions

File tree

examples/bgprouter.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
- name: Sample bgprouter playbook
3+
hosts: localhost
4+
gather_facts: false
5+
tasks:
6+
- name: Configure bgprouter
7+
delegate_to: localhost
8+
netscaler.adc.bgprouter:
9+
state: present
10+
localAS: 100
11+
routerId: 2.2.2.2
12+
afParams:
13+
- addressFamily: ipv4
14+
redistribute:
15+
- protocol: static
16+
routeMap: test
17+
- addressFamily: ipv6
18+
neighbor:
19+
- address: 44.1.1.33
20+
remoteAS: 300
21+
ASOriginationInterval: 15
22+
advertisementInterval: 30
23+
updateSource: vlan101
24+
holdTimer: 90
25+
keepaliveTimer: 30
26+
state: Connect
27+
singlehopBfd: false
28+
multihopBfd: false
29+
afParams:
30+
- addressFamily: ipv4
31+
activate: true
32+
routeMap:
33+
- name: test
34+
direction: out
35+
- addressFamily: ipv6
36+
activate: false

examples/ospfinterface.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: Sample ospfinterface playbook
3+
hosts: localhost
4+
gather_facts: false
5+
tasks:
6+
- name: Configure ospfinterface
7+
delegate_to: localhost
8+
netscaler.adc.ospfinterface:
9+
state: present
10+
name: vlan100
11+
helloInterval: 10
12+
deadInterval: 40
13+
cost: 10
14+
priority: 1
15+
mtu: 1500
16+
networkType: broadcast
17+
authType: null
18+
retransmitInterval: 5
19+
transmitDelay: 1
20+
bfd: false

examples/ospfrouter.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
- name: Sample routeMap playbook
3+
hosts: localhost
4+
gather_facts: false
5+
tasks:
6+
- name: Configure routeMap
7+
delegate_to: localhost
8+
netscaler.adc.ospfrouter:
9+
state: present
10+
nsip: 10.106.210.21
11+
nitro_user: nsroot
12+
nitro_pass: notnsroot
13+
validate_certs: false
14+
nitro_protocol: http
15+
tagId: "11"
16+
routerId: "1.1.1.1"
17+
afParams:
18+
- addressFamily: "ipv6"

meta/runtime.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,3 +987,6 @@ action_groups:
987987
- routemap
988988
- ospf6interface
989989
- ospf6router
990+
- ospfrouter
991+
- ospfinterface
992+
- bgprouter

plugins/module_utils/constants.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,19 @@
160160
"ospf6interface",
161161
"routemap",
162162
"ospf6router",
163+
"bgprouter",
164+
"ospfrouter",
165+
"ospfinterface",
163166
]
164167

165168
DYNAMIC_PROTOCOLS_ALIAS = {
166169
"accesslist": "accessList",
167-
"accessList": "accesslist",
168170
"bfdinterface": "bfdInterface",
169-
"bfdInterface": "bfdinterface",
170171
"iproute": "ipRoute",
171-
"ipRoute": "iproute",
172172
"ospf6interface": "ospf6Interface",
173-
"ospf6Interface": "ospf6interface",
174173
"routemap": "routeMap",
175-
"routeMap": "routemap",
176174
"ospf6router": "ospf6Router",
177-
"ospf6Router": "ospf6router",
175+
"bgprouter": "bgpRouter",
176+
"ospfrouter": "ospfRouter",
177+
"ospfinterface": "ospfInterface",
178178
}

plugins/module_utils/nitro_resource_map.py

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16571,6 +16571,103 @@
1657116571
"singleton": False,
1657216572
"update_payload_keys": [],
1657316573
},
16574+
"bgprouter": {
16575+
"_supported_operations": ["get", "add", "unset", "update", "delete"],
16576+
"action_payload_keys": {
16577+
"apply": [],
16578+
"create": [],
16579+
"force": [],
16580+
"import": [],
16581+
"link": [],
16582+
"switch": [],
16583+
"unlink": [],
16584+
"unset": ["afParams", "localAS", "neighbor", "routerId"],
16585+
},
16586+
"add_payload_keys": ["afParams", "localAS", "neighbor", "routerId"],
16587+
"bindings": [],
16588+
"bindprimary_key": "",
16589+
"delete_arg_keys": ["localAS"],
16590+
"disable_payload_keys": [],
16591+
"enable_payload_keys": [],
16592+
"get_arg_keys": [],
16593+
"immutable_keys": [],
16594+
"password_keys": [],
16595+
"primary_key": "",
16596+
"primary_key_composite": [],
16597+
"update_payload_keys": ["afParams", "localAS", "neighbor", "routerId"],
16598+
"readwrite_argument": {
16599+
"localAS": {"no_log": False, "type": "int"},
16600+
"routerId": {"no_log": False, "type": "str"},
16601+
"afParams": {
16602+
"type": "list",
16603+
"elements": "dict",
16604+
"options": {
16605+
"addressFamily": {
16606+
"no_log": False,
16607+
"type": "str",
16608+
"choices": ["ipv4", "ipv6"],
16609+
},
16610+
"redistribute": {
16611+
"type": "list",
16612+
"elements": "dict",
16613+
"options": {
16614+
"protocol": {
16615+
"no_log": False,
16616+
"type": "str",
16617+
"choices": [
16618+
"kernel",
16619+
"connected",
16620+
"static",
16621+
"rip",
16622+
"ospf",
16623+
"isis",
16624+
"intranet",
16625+
],
16626+
},
16627+
"routeMap": {"no_log": False, "type": "str"},
16628+
},
16629+
},
16630+
},
16631+
},
16632+
"neighbor": {
16633+
"type": "list",
16634+
"elements": "dict",
16635+
"options": {
16636+
"ASOriginationInterval": {"no_log": False, "type": "int"},
16637+
"address": {"no_log": False, "type": "str"},
16638+
"advertisementInterval": {"no_log": False, "type": "int"},
16639+
"afParams": {
16640+
"type": "list",
16641+
"elements": "dict",
16642+
"options": {
16643+
"activate": {"no_log": False, "type": "bool"},
16644+
"addressFamily": {"no_log": False, "type": "str"},
16645+
"routeMap": {
16646+
"type": "dict",
16647+
"options": {
16648+
"direction": {
16649+
"no_log": False,
16650+
"type": "str",
16651+
"choices": ["in", "out"],
16652+
},
16653+
"name": {"no_log": False, "type": "str"},
16654+
},
16655+
},
16656+
},
16657+
},
16658+
"connectTimer": {"no_log": False, "type": "int"},
16659+
"holdTimerConfig": {"no_log": False, "type": "int"},
16660+
"keepaliveTimerConfig": {"no_log": False, "type": "int"},
16661+
"md5Password": {"no_log": True, "type": "str"},
16662+
"multihopBfd": {"no_log": False, "type": "bool"},
16663+
"remoteAS": {"no_log": False, "type": "int"},
16664+
"singlehopBfd": {"no_log": False, "type": "bool"},
16665+
"updateSource": {"no_log": False, "type": "str"},
16666+
},
16667+
},
16668+
},
16669+
"singleton": False,
16670+
},
1657416671
"bfdinterface": {
1657516672
"_supported_operations": ["get", "add", "unset"],
1657616673
"action_payload_keys": {
@@ -46909,6 +47006,160 @@
4690947006
"tagId",
4691047007
],
4691147008
},
47009+
"ospfinterface": {
47010+
"_supported_operations": [
47011+
"add",
47012+
"get",
47013+
"unset",
47014+
"update",
47015+
],
47016+
"action_payload_keys": {
47017+
"apply": [],
47018+
"create": [],
47019+
"force": [],
47020+
"import": [],
47021+
"link": [],
47022+
"switch": [],
47023+
"unlink": [],
47024+
"unset": [
47025+
"networks",
47026+
"passiveInterface",
47027+
"processId",
47028+
"redistribute",
47029+
"routerId",
47030+
],
47031+
},
47032+
"add_payload_keys": [
47033+
"networks",
47034+
"passiveInterface",
47035+
"processId",
47036+
"redistribute",
47037+
"routerId",
47038+
],
47039+
"bindings": [],
47040+
"bindprimary_key": "",
47041+
"delete_arg_keys": ["processId"],
47042+
"disable_payload_keys": [],
47043+
"enable_payload_keys": [],
47044+
"get_arg_keys": ["processId"],
47045+
"immutable_keys": [],
47046+
"password_keys": [],
47047+
"primary_key": "",
47048+
"primary_key_composite": [],
47049+
"readwrite_arguments": {
47050+
"authKey": {"no_log": False, "type": "str"},
47051+
"authType": {
47052+
"no_log": False,
47053+
"type": "str",
47054+
"choices": ["null", "simple", "message-digest"],
47055+
},
47056+
"bfd": {"no_log": False, "type": "bool"},
47057+
"cost": {"no_log": False, "type": "int"},
47058+
"deadInterval": {"no_log": False, "type": "int"},
47059+
"helloInterval": {"no_log": False, "type": "int"},
47060+
"mtu": {"no_log": False, "type": "int"},
47061+
"name": {"no_log": False, "type": "str"},
47062+
"networkType": {"no_log": False, "type": "str"},
47063+
"priority": {"no_log": False, "type": "int"},
47064+
"retransmitInterval": {"no_log": False, "type": "int"},
47065+
"transmitDelay": {"no_log": False, "type": "int"},
47066+
},
47067+
"singleton": False,
47068+
"update_payload_keys": [
47069+
"networks",
47070+
"passiveInterface",
47071+
"processId",
47072+
"redistribute",
47073+
"routerId",
47074+
],
47075+
},
47076+
"ospfrouter": {
47077+
"_supported_operations": [
47078+
"add",
47079+
"get",
47080+
"unset",
47081+
"update",
47082+
"delete",
47083+
],
47084+
"action_payload_keys": {
47085+
"apply": [],
47086+
"create": [],
47087+
"force": [],
47088+
"import": [],
47089+
"link": [],
47090+
"switch": [],
47091+
"unlink": [],
47092+
"unset": [
47093+
"networks",
47094+
"passiveInterface",
47095+
"processId",
47096+
"redistribute",
47097+
"routerId",
47098+
],
47099+
},
47100+
"add_payload_keys": [
47101+
"networks",
47102+
"passiveInterface",
47103+
"processId",
47104+
"redistribute",
47105+
"routerId",
47106+
],
47107+
"bindings": [],
47108+
"bindprimary_key": "",
47109+
"delete_arg_keys": ["processId"],
47110+
"disable_payload_keys": [],
47111+
"enable_payload_keys": [],
47112+
"get_arg_keys": ["processId"],
47113+
"immutable_keys": [],
47114+
"password_keys": [],
47115+
"primary_key": "",
47116+
"primary_key_composite": [],
47117+
"readwrite_arguments": {
47118+
"networks": {
47119+
"type": "dict",
47120+
"options": {
47121+
"area": {"no_log": False, "type": "int"},
47122+
"ipaddress": {"no_log": False, "type": "str"},
47123+
"netmask": {"no_log": False, "type": "int"},
47124+
},
47125+
},
47126+
"passiveInterface": {"no_log": False, "type": "list", "elements": "str"},
47127+
"processId": {"no_log": False, "type": "int"},
47128+
"redistribute": {
47129+
"type": "dict",
47130+
"options": {
47131+
"metric": {"no_log": False, "type": "int"},
47132+
"metricType": {"no_log": False, "type": "int"},
47133+
"ospfProcessId": {"no_log": False, "type": "int"},
47134+
"protocol": {
47135+
"no_log": False,
47136+
"type": "str",
47137+
"choices": [
47138+
"bgp",
47139+
"connected",
47140+
"intranet",
47141+
"isis",
47142+
"kernel",
47143+
"ospf",
47144+
"rip",
47145+
"static",
47146+
],
47147+
},
47148+
"routeMap": {"no_log": False, "type": "str"},
47149+
"tag": {"no_log": False, "type": "int"},
47150+
},
47151+
},
47152+
"routerId": {"no_log": False, "type": "str"},
47153+
},
47154+
"singleton": True,
47155+
"update_payload_keys": [
47156+
"networks",
47157+
"passiveInterface",
47158+
"processId",
47159+
"redistribute",
47160+
"routerId",
47161+
],
47162+
},
4691247163
"onlinkipv6prefix": {
4691347164
"_supported_operations": [
4691447165
"add",

0 commit comments

Comments
 (0)