diff options
author | 2014-07-01 16:54:25 -0400 | |
---|---|---|
committer | 2014-07-01 16:54:25 -0400 | |
commit | 50290b0e45429c207a5640979f3b0eee7aabfe20 (patch) | |
tree | b099344a07ec7bec47832a055c25d820313b49ae /os_net_config/impl_iproute.py | |
parent | a58503a27b67571b8a534b43fc7e614b5557b64e (diff) |
Add os-net-config CLI
Adds a new CLI which parses the JSON and calls the configured
provider to apply the configuration.
Diffstat (limited to 'os_net_config/impl_iproute.py')
-rw-r--r-- | os_net_config/impl_iproute.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/os_net_config/impl_iproute.py b/os_net_config/impl_iproute.py new file mode 100644 index 0000000..33f302e --- /dev/null +++ b/os_net_config/impl_iproute.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# 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. + +import os_net_config + + +class IprouteNetConfig(os_net_config.NetConfig): + """Configure network interfaces using iproute2.""" |