You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/swss-schema.md
+46-46
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
Schema data is defined in ABNF [RFC5234](https://tools.ietf.org/html/rfc5234) syntax.
1
+
Schema data is defined in ABNF [RFC5234](https://tools.ietf.org/html/rfc5234) syntax.
2
2
3
-
###Definitions of common tokens
3
+
###Definitions of common tokens
4
4
name = 1*DIGIT/1*ALPHA
5
5
ref_hash_key_reference = "[" hash_key "]" ;The token is a refernce to another valid DB key.
6
6
hash_key = name ; a valid key name (i.e. exists in DB)
7
7
8
8
9
-
###PORT_TABLE
9
+
###PORT_TABLE
10
10
Stores information for physical switch ports managed by the switch chip. device_names are defined in [port_config.ini](../portsyncd/port_config.ini). Ports to the CPU (ie: management port) and logical ports (loopback) are not declared in the PORT_TABLE. See INTF_TABLE.
11
11
12
12
;Defines layer 2 ports
@@ -17,13 +17,13 @@ Stores information for physical switch ports managed by the switch chip. device
17
17
admin_status = BIT ; is the port enabled (1) or disabled (0)
18
18
oper_status = BIT ; physical status up (1) or down (0) of the link attached to this port
19
19
lanes = list of lanes ; (need format spec???)
20
-
ifname = 1*64VCHAR ; name of the port, must be unique
21
-
mac = 12HEXDIG ;
20
+
ifname = 1*64VCHAR ; name of the port, must be unique
21
+
mac = 12HEXDIG ;
22
22
23
23
;QOS Mappings
24
24
map_dscp_to_tc = ref_hash_key_reference
25
25
map_tc_to_queue = ref_hash_key_reference
26
-
26
+
27
27
Example:
28
28
127.0.0.1:6379> hgetall PORT_TABLE:ETHERNET4
29
29
1) "dscp_to_tc_map"
@@ -32,18 +32,18 @@ Stores information for physical switch ports managed by the switch chip. device
32
32
4) "[TC_TO_QUEUE_MAP_TABLE:AZURE]"
33
33
34
34
---------------------------------------------
35
-
###INTF_TABLE
35
+
###INTF_TABLE
36
36
intfsyncd manages this table. In SONiC, CPU (management) and logical ports (vlan, loopback, LAG) are declared in /etc/network/interface and loaded into the INTF_TABLE.
37
37
38
38
IP prefixes are formatted according to [RFC5954](https://tools.ietf.org/html/rfc5954) with a prefix length appended to the end
39
39
40
-
;defines logical network interfaces, an attachment to a PORT and list of 0 or more
40
+
;defines logical network interfaces, an attachment to a PORT and list of 0 or more
41
41
;ip prefixes
42
42
;
43
43
;Status: stable
44
44
key = INTF_TABLE:ifname:IPprefix ; an instance of this key will be repeated for each prefix
45
45
IPprefix = IPv4prefix / IPv6prefix ; an instance of this key/value pair will be repeated for each prefix
46
-
scope = "global" / "local" ; local is an interface visible on this localhost only
46
+
scope = "global" / "local" ; local is an interface visible on this localhost only
47
47
if_mtu = 1*4DIGIT ; MTU for the interface
48
48
family = "IPv4" / "IPv6" ; address family
49
49
@@ -60,7 +60,7 @@ IP prefixes are formatted according to [RFC5954](https://tools.ietf.org/html/rfc
0 commit comments