-
Notifications
You must be signed in to change notification settings - Fork 286
/
Copy pathSwitchBCM81724.h
104 lines (67 loc) · 4.02 KB
/
SwitchBCM81724.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
Copyright 2019 Broadcom. The term Broadcom refers to Broadcom Inc. and/or
its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#pragma once
#include "SwitchStateBase.h"
namespace saivs
{
class SwitchBCM81724:
public SwitchStateBase
{
public:
SwitchBCM81724(
_In_ sai_object_id_t switch_id,
_In_ std::shared_ptr<RealObjectIdManager> manager,
_In_ std::shared_ptr<SwitchConfig> config);
SwitchBCM81724(
_In_ sai_object_id_t switch_id,
_In_ std::shared_ptr<RealObjectIdManager> manager,
_In_ std::shared_ptr<SwitchConfig> config,
_In_ std::shared_ptr<WarmBootState> warmBootState);
virtual ~SwitchBCM81724();
protected:
virtual sai_status_t create_port_dependencies(_In_ sai_object_id_t port_id) override;
virtual sai_status_t create_qos_queues_per_port(_In_ sai_object_id_t port_id) override;
virtual sai_status_t create_qos_queues() override;
virtual sai_status_t set_switch_mac_address() override;
virtual sai_status_t create_default_vlan() override;
virtual sai_status_t create_default_1q_bridge() override;
virtual sai_status_t create_default_virtual_router() override;
virtual sai_status_t create_default_stp_instance() override;
virtual sai_status_t create_default_trap_group() override;
virtual sai_status_t create_ingress_priority_groups_per_port(
_In_ sai_object_id_t port_id) override;
virtual sai_status_t create_ingress_priority_groups() override;
virtual sai_status_t create_vlan_members() override;
virtual sai_status_t create_bridge_ports() override;
virtual sai_status_t set_acl_entry_min_prio() override;
virtual sai_status_t set_acl_capabilities() override;
virtual sai_status_t set_maximum_number_of_childs_per_scheduler_group() override;
virtual sai_status_t set_number_of_ecmp_groups() override;
virtual sai_status_t create_cpu_port();
virtual sai_status_t create_ports();
protected : // refresh
virtual sai_status_t refresh_port_list(
_In_ const sai_attr_metadata_t *meta) override;
virtual sai_status_t refresh_bridge_port_list(
_In_ const sai_attr_metadata_t *meta,
_In_ sai_object_id_t bridge_id) override;
virtual sai_status_t refresh_vlan_member_list(
_In_ const sai_attr_metadata_t *meta,
_In_ sai_object_id_t vlan_id) override;
protected:
virtual sai_status_t refresh_read_only( _In_ const sai_attr_metadata_t *meta, _In_ sai_object_id_t object_id) override;
virtual sai_status_t set_switch_default_attributes();
virtual sai_status_t initialize_default_objects() override;
};
}