<commit_before><commit_msg>switch1.py - config for VLAN code example<commit_after>
spec = {
    'name' : "switch 1 VLANs",
    'external network name' : "exnet3",
    'keypair' : "X220",
    'controller' : "r720",
    'dns' : "10.30.65.200",
    'credentials' : { 'user' : "nic", 'password' : "<PASSWORD>", 'project' : "nic" },
    # 'credentials' : { 'user' : "admin", 'password' : "<PASSWORD>", 'project' : "admin" },
    # NOTE: network start/end range -
    #       a) must not include the gateway IP
    #       b) when assigning host IPs remember taht a DHCP server will be allocated from the range as well as the hosts
    #          Probably on the first or second available IP in the range....
    'keypair' : "x220",
    'Networks' : [
        { 'name' : "net4001" , "start": "192.168.1.200", "end": "192.168.1.254", "subnet" :" 192.168.1.0/24", "gateway": "192.168.1.1", "vlan": 4001, "physical_network": "vlannet" },
        { 'name' : "net4002" , "start": "192.168.1.200", "end": "192.168.1.254", "subnet" :" 192.168.1.0/24", "gateway": "192.168.1.1", "vlan": 4002, "physical_network": "vlannet" }
    ],
    'Hosts' : [
        { 'name' : "h4001" , 'image' : "cirros" , 'flavor':"m1.tiny" , 'net' : [ ("net4001" , "192.168.1.201" , "*") ] },
        { 'name' : "h4002" , 'image' : "cirros" , 'flavor':"m1.tiny" , 'net' : [ ("net4001" , "192.168.1.202" , "*") ] }
    ]
}
{'fraction_non_alphanumeric': 0.22760115606936415, 'fraction_numerical': 0.10910404624277456, 'mean_word_length': 2.868715083798883, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 11, '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': '3564178', 'n_tokens_mistral': 636, 'n_tokens_neox': 541, 'n_words': 126}