'Adds a static route to a provider network.'

def add_static_route(self, q_name, route_dict):

    pn = self.user_defined_config['global_overrides']['provider_networks']
    for net in pn:
        net_dict = net['network']
        q = net_dict.get('ip_from_q', None)
        if (q == q_name):
            net_dict['static_routes'] = [route_dict]
    self.write_config()
