Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ansible/plays_and_roles/create_core_link.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
- name: Deploy config on a nokia node
hosts: all
gather_facts: no
vars_files:
- netbox.yml
vars:
ansible_network_os: nokia.srlinux.srlinux
ansible_connection: ansible.netcommon.httpapi
ansible_user: admin
ansible_password: NokiaSrl1!
netbox_url: "http://netbox:8080"
netbox_token: "e744057d755255a31818bf74df2350c26eeabe54"
debug: false
tasks:
- name: Dump subscripion
Expand Down
4 changes: 2 additions & 2 deletions ansible/plays_and_roles/create_node.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
- name: Deploy config on a nokia node
hosts: all
gather_facts: no
vars_files:
- netbox.yml
vars:
ansible_network_os: nokia.srlinux.srlinux
ansible_connection: ansible.netcommon.httpapi
ansible_user: admin
ansible_password: NokiaSrl1!
netbox_url: "http://netbox:8080"
netbox_token: "nbt_sDx3hakFeTCZ.lnGwrK42a7z1IelVaigWXqaAB0GKSpbOSZKTrLdb"
debug: false
tasks:
- name: Dump subscripion
Expand Down
5 changes: 3 additions & 2 deletions ansible/plays_and_roles/create_port.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
- name: Deploy a port on a nokia node
hosts: all
gather_facts: no
vars_files:
- netbox.yml
vars:
ansible_network_os: nokia.srlinux.srlinux
ansible_connection: ansible.netcommon.httpapi
ansible_user: admin
ansible_password: NokiaSrl1!
netbox_url: "http://netbox:8080"
netbox_token: "e744057d755255a31818bf74df2350c26eeabe54"
vlan_tagging: false
debug: false
tasks:
Expand Down
5 changes: 3 additions & 2 deletions ansible/plays_and_roles/delete_core_link.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
- name: Deploy config on a nokia node
hosts: all
gather_facts: no
vars_files:
- netbox.yml
vars:
ansible_network_os: nokia.srlinux.srlinux
ansible_connection: ansible.netcommon.httpapi
ansible_user: admin
ansible_password: NokiaSrl1!
netbox_url: "http://netbox:8080"
netbox_token: "e744057d755255a31818bf74df2350c26eeabe54"
debug: false
tasks:
- name: Dump subscripion
Expand Down
6 changes: 4 additions & 2 deletions workflows/node/shared/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ def get_node_interface_list(node_name: str) -> List[Tuple[str, str, int]]:
:param node_name: name of the node to retrieve interfaces from
:return: list of interface tuples with name, type, and speed (kbps) details
"""
ten_gig_interfaces = [(f"ethernet-1/{i}", "10gbase-x-xfp", 10000000) for i in range(10)]
hundred_gig_interfaces = [(f"ethernet-1/{i + 10}", "100gbase-x-cfp", 100000000) for i in range(4)]
# SR Linux interface names are 1-indexed (ethernet-1/0 is rejected by the device),
# so numbering starts at 1: ten-gig on 1/1..1/10, hundred-gig on 1/11..1/14.
ten_gig_interfaces = [(f"ethernet-1/{i}", "10gbase-x-xfp", 10000000) for i in range(1, 11)]
hundred_gig_interfaces = [(f"ethernet-1/{i + 11}", "100gbase-x-cfp", 100000000) for i in range(4)]
return ten_gig_interfaces + hundred_gig_interfaces


Expand Down
Loading