Skip to content

Commit 639c70a

Browse files
authored
Modifications as per suggestions
1 parent 4bc8db6 commit 639c70a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -333,29 +333,26 @@ Example: Suppose if Vlan10, Vlan11, Vlan12, Vlan13, Vlan14, Vlan15, Vlan16, Vlan
333333

334334
## YANG Model Configuration
335335

336-
For Mode attribute, a new leaf is added to PORT_TABLE & PORTCHANNEL_TABLE.
336+
For Mode attribute, a new type is defined in YANG Model for adding support of "mode" in PORT_TABLE & PORTCHANNEL_TABLE.
337337

338338
### YANG New type for PORT_TABLE & PORTCHANNEL_TABLE
339339

340340
typedef switchport_mode {
341341
type string {
342342
pattern "routed|access|trunk";
343-
}
343+
}
344344
description
345345
"SwitchPort Modes for Port & PortChannel";
346-
}
346+
}
347347

348348
### YANG Leaf for PORT_TABLE & PORTCHANNEL_TABLE
349349

350-
leaf switch_mode {
351-
description "SwitchPort Modes values will be from "routed|access|trunk. Default val is routed. ";
352-
type string {
353-
pattern "routed|access|trunk";
354-
}
355-
default "routed";
350+
leaf mode {
351+
description "SwitchPort Modes possible vlaues are routed|access|trunk. Default val is routed. ";
352+
type stypes:switchport_mode;
353+
default "routed";
356354
}
357355

358-
359356
### Warm Boot and Fastboot Design Impact
360357

361358
The existing warm boot/fast boot feature is not affected due to this design.

0 commit comments

Comments
 (0)