<commit_before>FN=$SETUPDIR/vtn-network-cfg.json

echo "Writing to $FN"

rm -f $FN

cat >> $FN <<EOF
{
    "apps" : {
        "org.onosproject.cordvtn" : {
            "cordvtn" : {
                "gatewayMac" : "00:00:00:00:00:01",
                "localManagementIp": "172.27.0.1/24",
                "ovsdbPort": "6641",
                "sshPort": "22",
                "sshUser": "root",
                "sshKeyFile": "/root/node_key",
                "nodes" : [
EOF

NODES=$( sudo bash -c "source $SETUPDIR/admin-openrc.sh ; nova hypervisor-list" |grep -v ID|grep -v +|awk '{print $4}' )

# XXX disabled - we don't need or want the nm node at this time
# also configure ONOS to manage the nm node
# NM=`grep "^nm" /root/setup/fqdn.map | awk '{ print $2 }'`<commit_msg>add new vtn config options<commit_after>FN=$SETUPDIR/vtn-network-cfg.json

echo "Writing to $FN"

rm -f $FN

cat >> $FN <<EOF
{
    "apps" : {
        "org.onosproject.cordvtn" : {
            "cordvtn" : {
                "privateGatewayMac" : "00:00:00:00:00:01",
                "localManagementIp": "172.27.0.1/24",
                "ovsdbPort": "6641",
                "sshPort": "22",
                "sshUser": "root",
                "sshKeyFile": "/root/node_key",
                "publicGateways": [
                    {
                        "gatewayIp": "10.123.0.1",
                        "gatewayMac": "00:8c:fa:5b:09:d8"
                    }
                ],
                "nodes" : [
EOF

NODES=$( sudo bash -c "source $SETUPDIR/admin-openrc.sh ; nova hypervisor-list" |grep -v ID|grep -v +|awk '{print $4}' )

# XXX disabled - we don't need or want the nm node at this time
# also configure ONOS to manage the nm node
# NM=`grep "^nm" /root/setup/fqdn.map | awk '{ print $2 }'`
{'fraction_non_alphanumeric': 0.16141732283464566, 'fraction_numerical': 0.04049493813273341, 'mean_word_length': 1.749613601236476, 'pattern_counts': {'":': 13, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4623172', 'n_tokens_mistral': 693, 'n_tokens_neox': 624, 'n_words': 149}