Skip to content

Commit

Permalink
Copying labels from KNE spec to POD spec.
Browse files Browse the repository at this point in the history
This applies Juniper and Cisco vendors. Nokia
needs support for controller.
  • Loading branch information
alshabib committed Nov 27, 2023
1 parent 4fe7a0f commit 2468403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions topo/node/cisco/cisco.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func (n *Node) Create(ctx context.Context) error {
},
},
}
for label, v := range n.GetProto().GetLabels() {
pod.ObjectMeta.Labels[label] = v
}
if pb.Config.ConfigData != nil {
vol, err := n.CreateConfig(ctx)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions topo/node/juniper/juniper.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ func (n *Node) Create(ctx context.Context) error {
},
},
}
for label, v := range n.GetProto().GetLabels() {
pod.ObjectMeta.Labels[label] = v
}
if pb.Config.ConfigData != nil {
vol, err := n.CreateConfig(ctx)
if err != nil {
Expand Down

0 comments on commit 2468403

Please sign in to comment.