Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow same facility port more than once in a slice #193

Closed
ibaldin opened this issue Aug 29, 2023 · 1 comment
Closed

Allow same facility port more than once in a slice #193

ibaldin opened this issue Aug 29, 2023 · 1 comment
Assignees
Labels
1.6 For release 1.6

Comments

@ibaldin
Copy link
Contributor

ibaldin commented Aug 29, 2023

Example from CloudLab stitching where one slice may need to have a link from CL Utah to CL Wisc and CL Utah to CL Clem - Information Model name uniqueness checks prevent this from happening.

@ibaldin ibaldin added the 1.6 For release 1.6 label Aug 29, 2023
@ibaldin ibaldin self-assigned this Aug 29, 2023
@ibaldin
Copy link
Contributor Author

ibaldin commented Nov 12, 2023

Code with de698b7 that starts from rel1.6 allows to define multiple interfaces for a facility using an optional interfaces parameter, which is a List of Tuples (interface_name, interface_labels, intertface_capacities), so you either use the old way:

# this uses the 'old way' with kwargs being used for a single interface
        fac1 = self.topo.add_facility(name='RENCI-DTN', site='RENC', capacities=f.Capacities(bw=10),
                                      labels=f.Labels(vlan='100'))
# this uses a new way where  interface labels and capacities (and names) are passed in explicitly
# in this case kwargs are ignored
        fac1 = self.topo.add_facility(name='RENCI-DTN', site='RENC',
                                      interfaces=[('to_mass', f.Labels(vlan='100'), f.Capacities(bw=10)),
                                                          ('to_renc', f.Labels(vlan='101'), f.Capacities(bw=1))])

@ibaldin ibaldin closed this as completed Nov 12, 2023
@ibaldin ibaldin mentioned this issue Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.6 For release 1.6
Projects
None yet
Development

No branches or pull requests

1 participant