-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions Regarding External Switch Integration and CR Examples for network-config-operator
#1
Comments
On 28 Jan 2024, at 10:01, Andrew Larin ***@***.***> wrote:
Hi @henderiw <https://github.com/henderiw>,
Thanks for your contributions to the Nephio project with technologies such as gNMI and YANG Schemas. It's great to explore and contribute to such initiatives.
I've got a couple of questions regarding the network-config-operator repository.
Is it possible to use this operator with switches that aren't part of the Kubernetes/Nephio-edge-cluster environment (think external endpoints)? If so, could you provide guidance on the necessary YAML configuration adjustments?
WH> yes this is possible. Now we are about to release a new open source project that is more generic for this. In Nephio I added a capability to do this to make the networking work. With this new operator it is agnostic of the vendor and we can load any yang schema. So you can use it for in cluster NF(s) that use YANG or out of cluster elements that use YANG.
Am I right in understanding that the Network Config Custom Resource handles the switch endpoint designation? Could you post/share a sample of the CR YAML configuration to demonstrate how to configure this operator for an SR Linux switch?
WH> the CR is flexible and adheres to the yang model of the device. So the yang schema is translated to YAML.
Here is a CR
***@***.***:~$ k get networks.config.nephio.org vpc-internet-srl -o yaml
apiVersion: config.nephio.org/v1alpha1
kind: Network
metadata:
creationTimestamp: "2023-06-29T07:18:24Z"
finalizers:
- infra.nephio.org/finalizer
generation: 79
labels:
nephio.org/node-name: srl
nephio.org/owner-gvk: Network.v1alpha1.infra.nephio.org
nephio.org/owner-nsn-name: vpc-internet
nephio.org/owner-nsn-namespace: default
name: vpc-internet-srl
namespace: default
ownerReferences:
- apiVersion: infra.nephio.org/v1alpha1
controller: true
kind: Network
name: vpc-internet
uid: e9123657-8a9c-4637-88f8-d762d5e095fd
resourceVersion: "99872291"
uid: 7751eb62-d5a7-4540-b21e-9078ecf1c379
spec:
config:
srl_nokia-interfaces:interface:
- name: ethernet-1/1
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: ethernet-1/2
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: ethernet-1/3
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: irb0
subinterface:
- anycast-gw:
virtual-router-id: 1
index: 2037
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.0.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
- anycast-gw:
virtual-router-id: 1
index: 2038
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.2.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172:0:0:2::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
- anycast-gw:
virtual-router-id: 1
index: 2384
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.1.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172:0:0:1::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
srl_nokia-network-instance:network-instance:
- interface:
- name: irb0.2037
- name: irb0.2038
- name: irb0.2384
name: vpc-internet
type: srl_nokia-network-instance:ip-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/1.3
- name: irb0.2037
name: vpc-internet-edge01-bd
type: srl_nokia-network-instance:mac-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/2.3
- name: irb0.2038
name: vpc-internet-edge02-bd
type: srl_nokia-network-instance:mac-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/3.3
- name: irb0.2384
name: vpc-internet-regional-bd
type: srl_nokia-network-instance:mac-vrf
lifecycle:
deletionPolicy: delete
status:
conditions:
- lastTransitionTime: "2023-07-04T20:31:16Z"
message: 'rpc error: code = Unavailable desc = connection error: desc = "transport:
Error while dialing: dial tcp 172.18.0.12:57400: connect: connection refused"'
reason: Failed
status: "False"
type: Ready
lastAppliedConfig:
srl_nokia-interfaces:interface:
- name: ethernet-1/1
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: ethernet-1/2
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: ethernet-1/3
srl_nokia-interfaces-vlans:vlan-tagging: true
subinterface:
- index: 3
srl_nokia-interfaces-vlans:vlan:
encap:
single-tagged:
vlan-id: 3
type: srl_nokia-interfaces:bridged
- name: irb0
subinterface:
- anycast-gw:
virtual-router-id: 1
index: 2037
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.0.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
- anycast-gw:
virtual-router-id: 1
index: 2038
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.2.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172:0:0:2::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
- anycast-gw:
virtual-router-id: 1
index: 2384
ipv4:
address:
- anycast-gw: true
ip-prefix: 172.0.1.1/24
srl_nokia-interfaces-nbr:arp:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: true
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
ipv6:
address:
- anycast-gw: true
ip-prefix: 172:0:0:1::1/64
srl_nokia-interfaces-nbr:neighbor-discovery:
host-route:
populate:
- route-type: dynamic
learn-unsolicited: global
srl_nokia-interfaces-nbr-evpn:evpn:
advertise:
- route-type: dynamic
srl_nokia-network-instance:network-instance:
- interface:
- name: irb0.2037
- name: irb0.2038
- name: irb0.2384
name: vpc-internet
type: srl_nokia-network-instance:ip-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/1.3
- name: irb0.2037
name: vpc-internet-edge01-bd
type: srl_nokia-network-instance:mac-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/2.3
- name: irb0.2038
name: vpc-internet-edge02-bd
type: srl_nokia-network-instance:mac-vrf
- bridge-table:
mac-learning:
admin-state: enable
interface:
- name: ethernet-1/3.3
- name: irb0.2384
name: vpc-internet-regional-bd
type: srl_nokia-network-instance:mac-vrf
… Cheers!
—
Reply to this email directly, view it on GitHub <#1>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACMXXVHIVJWGJPXWF7WRZPLYQYHYFAVCNFSM6AAAAABCOAP6QKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDIMBUHA4DCMY>.
You are receiving this because you were mentioned.
|
@henderiw
Logs in
Question is – What steps should be next to ensure that Thank you for your help! |
@henderiw waiting for your response! |
this will not work as clabernetes is cluster local and we need aa multi-cluster solution. It is being worked on after we deliver nf2infra |
Hi @henderiw,
Thanks for your contributions to the Nephio project with technologies such as gNMI and YANG Schemas. It's great to explore and contribute to such initiatives.
I've got a couple of questions regarding the
network-config-operator
repository.Cheers!
The text was updated successfully, but these errors were encountered: