File tree Expand file tree Collapse file tree 20 files changed +40
-203
lines changed
Expand file tree Collapse file tree 20 files changed +40
-203
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- # SPDX-License-Identifier: Apache-2.0
3-
4- # Copyright 2013-present Barefoot Networks, Inc.
5- #
6- # Licensed under the Apache License, Version 2.0 (the "License");
7- # you may not use this file except in compliance with the License.
8- # You may obtain a copy of the License at
9- #
10- # http://www.apache.org/licenses/LICENSE-2.0
11- #
12- # Unless required by applicable law or agreed to in writing, software
13- # distributed under the License is distributed on an "AS IS" BASIS,
14- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15- # See the License for the specific language governing permissions and
16- # limitations under the License.
2+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
173#
4+ # SPDX-License-Identifier: Apache-2.0
185
196import argparse
207import importlib
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2013-present Barefoot Networks, Inc.
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
152#
3+ # SPDX-License-Identifier: Apache-2.0
164
175import os
186import socket
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- # SPDX-License-Identifier: Apache-2.0
3-
4- # Copyright 2013-present Barefoot Networks, Inc.
5- #
6- # Licensed under the Apache License, Version 2.0 (the "License");
7- # you may not use this file except in compliance with the License.
8- # You may obtain a copy of the License at
9- #
10- # http://www.apache.org/licenses/LICENSE-2.0
11- #
12- # Unless required by applicable law or agreed to in writing, software
13- # distributed under the License is distributed on an "AS IS" BASIS,
14- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15- # See the License for the specific language governing permissions and
16- # limitations under the License.
2+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
173#
4+ # SPDX-License-Identifier: Apache-2.0
185
196import argparse
207from subprocess import PIPE , Popen
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2017-present Open Networking Foundation
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2017 Open Networking Foundation
152#
3+ # SPDX-License-Identifier: Apache-2.0
164
175import psutil
186
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2013-present Barefoot Networks, Inc.
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
152#
3+ # SPDX-License-Identifier: Apache-2.0
164
175import os
186import tempfile
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- # SPDX-License-Identifier: Apache-2.0
3- # Copyright 2013-present Barefoot Networks, Inc.
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License");
6- # you may not use this file except in compliance with the License.
7- # You may obtain a copy of the License at
8- #
9- # http://www.apache.org/licenses/LICENSE-2.0
2+
3+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
104#
11- # Unless required by applicable law or agreed to in writing, software
12- # distributed under the License is distributed on an "AS IS" BASIS,
13- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14- # See the License for the specific language governing permissions and
15- # limitations under the License.
5+ # SPDX-License-Identifier: Apache-2.0
166
177
188
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2017-present Open Networking Foundation
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2017 Open Networking Foundation
152#
3+ # SPDX-License-Identifier: Apache-2.0
164from p4 .tmp import p4config_pb2
175
186from .switch import SwitchConnection
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2017-present Open Networking Foundation
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2017 Open Networking Foundation
152#
3+ # SPDX-License-Identifier: Apache-2.0
164import math
175import re
186import socket
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2013-present Barefoot Networks, Inc.
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2013 Barefoot Networks, Inc.
152#
3+ # SPDX-License-Identifier: Apache-2.0
164
175import sys
186
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: Apache-2.0
2- # Copyright 2017-present Open Networking Foundation
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
1+ # SPDX-FileCopyrightText: 2017 Open Networking Foundation
152#
3+ # SPDX-License-Identifier: Apache-2.0
164import re
175
186import google .protobuf .text_format
You can’t perform that action at this time.
0 commit comments