Skip to content

Commit

Permalink
Polish code
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur committed Apr 14, 2022
1 parent 2a28135 commit 515aa88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/sonic-yang-models/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run(self):
'./yang-models/sonic-pfc-priority-queue-map.yang',
'./yang-models/sonic-pfc-priority-priority-group-map.yang',
'./yang-models/sonic-port-qos-map.yang',
'./yang-models/sonic-macsec.yang',]),
'./yang-models/sonic-macsec.yang']),
('cvlyang-models', ['./cvlyang-models/sonic-acl.yang',
'./cvlyang-models/sonic-bgp-common.yang',
'./cvlyang-models/sonic-bgp-global.yang',
Expand Down
11 changes: 5 additions & 6 deletions src/sonic-yang-models/yang-models/sonic-macsec.yang
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ module sonic-macsec {
description "First Revision";
}

import sonic-types {
prefix stypes;
}

container sonic-macsec {

Expand Down Expand Up @@ -83,9 +86,7 @@ module sonic-macsec {
}

leaf enable_replay_protect {
type string {
pattern "true|false";
}
type stypes:boolean_type;
default "false";
}

Expand All @@ -95,9 +96,7 @@ module sonic-macsec {
}

leaf send_sci {
type string {
pattern "true|false";
}
type stypes:boolean_type;
default "true";
}

Expand Down

0 comments on commit 515aa88

Please sign in to comment.