Set qos for VM ports to NIC
- Plugin: ML2
- Driver: Openvswitch
- Network: VLAN
| package main | |
| import ( | |
| "fmt" | |
| "os/exec" | |
| "strconv" | |
| "strings" | |
| ) | |
| var execCommand = exec.Command |
| package main | |
| import ( | |
| "os/exec" | |
| "strconv" | |
| "strings" | |
| ) | |
| func ssh(port int) { | |
| cmd := exec.Command("ssh", "root@localhost", "-p", strconv.Itoa(port)) |
| <config> | |
| <interfaces xmlns="http://openconfig.net/yang/interfaces"> | |
| <interface> | |
| <name>ge-0/0/0</name> | |
| <subinterfaces> | |
| <subinterface> | |
| <index>0</index> | |
| <config> | |
| <index>0</index> | |
| <enabled>true</enabled> |
| [[local|localrc]] | |
| HOST_IP=127.0.0.1 | |
| MYSQL_PASSWORD=mysql | |
| RABBIT_PASSWORD=rabbitmq | |
| ADMIN_PASSWORD=secret | |
| SERVICE_PASSWORD=secret | |
| enable_plugin networking-lagopus https://github.com/hichihara/networking-lagopus | |
| Q_ML2_PLUGIN_MECHANISM_DRIVERS=lagopus |
| diff --git a/neutron/db/models/tag.py b/neutron/db/models/tag.py | |
| index 6fb7a36..42ef18b 100644 | |
| --- a/neutron/db/models/tag.py | |
| +++ b/neutron/db/models/tag.py | |
| @@ -28,3 +28,5 @@ class Tag(model_base.BASEV2): | |
| standard_attr = orm.relationship( | |
| 'StandardAttribute', | |
| backref=orm.backref('tags', lazy='joined', viewonly=True)) | |
| + revises_on_change = ('resource', ) | |
| + resource = None |