Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 262d754

Browse files
author
ygorelik
committed
Introdiced new releases for XR, XE and NX platforms
1 parent 75e5abd commit 262d754

File tree

221 files changed

+463949
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+463949
-0
lines changed

cisco-ios-xe/[email protected]

2.03 MB
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module Cisco-IOS-XE-pnp {
2+
namespace "http://cisco.com/ns/yang/Cisco-IOS-XE-pnp";
3+
prefix ios-pnp;
4+
5+
import Cisco-IOS-XE-native {
6+
prefix ios;
7+
}
8+
9+
10+
organization
11+
"Cisco Systems, Inc.";
12+
13+
contact
14+
"Cisco Systems, Inc.
15+
Customer Service
16+
17+
Postal: 170 W Tasman Drive
18+
San Jose, CA 95134
19+
20+
Tel: +1 1800 553-NETS
21+
22+
23+
24+
description
25+
"Cisco XE PNP Yang model.
26+
Copyright (c) 2018 by Cisco Systems, Inc.
27+
All rights reserved.";
28+
29+
// =========================================================================
30+
// REVISION
31+
// =========================================================================
32+
revision 2018-07-10 {
33+
description
34+
"Initial revision";
35+
}
36+
37+
grouping config-pnp-grouping {
38+
container pnp {
39+
description
40+
"Configure PNP";
41+
leaf startup-vlan {
42+
description
43+
"PNP startup-vlan";
44+
type uint16 {
45+
range "2..4094";
46+
}
47+
}
48+
}
49+
}
50+
51+
/////////////////////////////////////////////////////////
52+
// native / pnp
53+
/////////////////////////////////////////////////////////
54+
augment "/ios:native" {
55+
uses config-pnp-grouping;
56+
}
57+
} //module

cisco-ios-xr/[email protected]

1.55 MB
Binary file not shown.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
""" Cisco_IOS_XR_Ethernet_SPAN_subscriber_cfg
2+
3+
This module contains a collection of YANG definitions
4+
for Cisco IOS\-XR Ethernet\-SPAN\-subscriber package configuration.
5+
6+
This YANG module augments the
7+
Cisco\-IOS\-XR\-subscriber\-infra\-tmplmgr\-cfg
8+
module with configuration data.
9+
10+
Copyright (c) 2013\-2018 by Cisco Systems, Inc.
11+
All rights reserved.
12+
13+
"""
14+
from collections import OrderedDict
15+
16+
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
17+
from ydk.filters import YFilter
18+
from ydk.errors import YError, YModelError
19+
from ydk.errors.error_handler import handle_type_error as _handle_type_error
20+
21+
22+
23+
class SpanMirrorInterval(Enum):
24+
"""
25+
SpanMirrorInterval (Enum Class)
26+
27+
Span mirror interval
28+
29+
.. data:: Y_512 = 1
30+
31+
Mirror 1 in every 512 packets
32+
33+
.. data:: Y_1k = 2
34+
35+
Mirror 1 in every 1024 packets
36+
37+
.. data:: Y_2k = 3
38+
39+
Mirror 1 in every 2048 packets
40+
41+
.. data:: Y_4k = 4
42+
43+
Mirror 1 in every 4096 packets
44+
45+
.. data:: Y_8k = 5
46+
47+
Mirror 1 in every 8192 packets
48+
49+
.. data:: Y_16k = 6
50+
51+
Mirror 1 in every 16384 packets
52+
53+
"""
54+
55+
Y_512 = Enum.YLeaf(1, "512")
56+
57+
Y_1k = Enum.YLeaf(2, "1k")
58+
59+
Y_2k = Enum.YLeaf(3, "2k")
60+
61+
Y_4k = Enum.YLeaf(4, "4k")
62+
63+
Y_8k = Enum.YLeaf(5, "8k")
64+
65+
Y_16k = Enum.YLeaf(6, "16k")
66+
67+
68+
class SpanTrafficDirection(Enum):
69+
"""
70+
SpanTrafficDirection (Enum Class)
71+
72+
Span traffic direction
73+
74+
.. data:: rx_only = 1
75+
76+
Replicate only received (ingress) traffic
77+
78+
.. data:: tx_only = 2
79+
80+
Replicate only transmitted (egress) traffic
81+
82+
"""
83+
84+
rx_only = Enum.YLeaf(1, "rx-only")
85+
86+
tx_only = Enum.YLeaf(2, "tx-only")
87+
88+
89+

0 commit comments

Comments
 (0)