topogen: choose right address type when generating gateway topology
There is a problem generating the local topology with the SIG configuration enabled.
When running e.g. `scion.sh topology --sig -d topology/tiny.topo`
the address type is set to IPv4 for the SIG of the 1-ff00:0:112 AS, which is wrong.
Fixes
Closes
GitOrigin-RevId:
@@ -333,7 +333,7 @@ class TopoGenerator(object):
}
def _gen_sig_entries(self, topo_id, as_conf):
- addr_type = addr_type_from_underlay(DEFAULT_UNDERLAY)
+ addr_type = addr_type_from_underlay(as_conf.get('underlay', DEFAULT_UNDERLAY))
elem_id = "sig" + topo_id.file_fmt()
reg_id = "sig" + topo_id.file_fmt()
port = 30256
