Merge "Run the dispatch script for vlans as well"
This commit is contained in:
@@ -179,7 +179,13 @@ outputs:
|
|||||||
content: >-
|
content: >-
|
||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
for dev in $(jq '.network_config[] | {name}.name' /etc/os-net-config/config.json);
|
DEVS=$(jq '.network_config[] | {name}.name' /etc/os-net-config/config.json)
|
||||||
|
# NOTE(flaper87): We should, eventually, set the name on the vlan objects
|
||||||
|
# inside the os-net-config config.json file and use that.
|
||||||
|
|
||||||
|
VLANS=$(jq '.network_config[] | .members // [] | del( .[] | select( .type != "vlan" ) ) | .[].type + (.[].vlan_id|tostring)' /etc/os-net-config/config.json)
|
||||||
|
|
||||||
|
for dev in $DEVS $VLANS;
|
||||||
do
|
do
|
||||||
temp="${dev%\"}"
|
temp="${dev%\"}"
|
||||||
temp="${temp#\"}"
|
temp="${temp#\"}"
|
||||||
|
Reference in New Issue
Block a user