Skip to content

Commit

Permalink
leafref added per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Jun 21, 2022
1 parent c57de23 commit 9393101
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ module sonic-events-dhcp-relay {
description "Name of the i/f discarding";
}

type leafref {
path "/port:sonic-port/port:PORT/port:PORT_LIST/port:name";
}

uses evtcmn:sonic-events-cmn;
}

Expand Down
8 changes: 8 additions & 0 deletions src/sonic-yang-models/yang-events/sonic-events-swss.yang
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ module sonic-events-swss {
description "Interface name";
}

type leafref {
path "/port:sonic-port/port:PORT/port:PORT_LIST/port:name";
}

leaf status {
type enumeration {
enum "up";
Expand All @@ -77,6 +81,10 @@ module sonic-events-swss {
description "Interface name";
}

type leafref {
path "/port:sonic-port/port:PORT/port:PORT_LIST/port:name";
}

leaf queue_index {
type uint8;
}
Expand Down

0 comments on commit 9393101

Please sign in to comment.